Consulting

Results 1 to 2 of 2

Thread: Solved: Paragraph Alignment

  1. #1
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location

    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?

  2. #2
    VBAX Expert
    Joined
    Feb 2010
    Posts
    696
    Location
    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
  •