-
Solved: Paragraph Alignment
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:
[VBA]
Public Const H1Align as String = "wdAlignParagrapCenter"
[/VBA]
However, I'm receiving an error. How should I properly declare the variable?
-
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules