PDA

View Full Version : Solved: Paragraph Alignment



Opv
06-25-2012, 06:35 AM
I am wanting to declare a public variable for sundry format settings, i.e., font, font size, bold, italic and paragraph alignment. I'm able to Dim all of the appropriate variables except the alignment property for the variable, H1Align. I tried the following in a standard Module:


Public Const H1Align as String = "wdAlignParagrapCenter"


However, I'm receiving an error. How should I properly declare the variable?

Opv
06-25-2012, 07:46 AM
I tried removing the parenthesis around wdAlignParagraphCenter and the code is now working. It may not be the correct way to apply the code but I'm not receiving an error and the code seems to be working with no errors.