I use this code:
It inserts the pages, but they stay right aligned:
.Selection.Sections(1).Footers(1).PageNumbers.Add
.Selection.PageNumberAlignment = wdAlignPageNumberLeft
Please, advise
Thank you!
I use this code:
It inserts the pages, but they stay right aligned:
.Selection.Sections(1).Footers(1).PageNumbers.Add
.Selection.PageNumberAlignment = wdAlignPageNumberLeft
Please, advise
Thank you!
Subject: What is the correct code to left-align page numbers, while exporting to Word?
You have to use the integer value of the variable named wdAlignPageNumberLeft, which is 0 (zero). The variable name is only known to MS Office products, not to Lotus Notes.
Subject: RE: What is the correct code to left-align page numbers, while exporting to Word?
Thank you, thank you!
This works just great.
One little thing:
I noticed, that 0 makes right, allother values I tried - make left. Do you know, what makes a center alignment?
Thank you again!
Subject: RE: What is the correct code to left-align page numbers, while exporting to Word?
It should be 1 (one)
Subject: MS Office Constants db - where to download for free
I should have mentioned that you can get a DB of values yourself from OpenNTF.org (free membership)
Their description:
This database provides a listing of all of the Microsoft Office Variable to Constant conversions for use when using LotusScript to automate Microsoft Office. It supports Office 2000, XP, 2003, and 2007.
http://www.openntf.org/Projects/pmt.nsf/0/1F6C5C7B16317E218625726D004A31A9
Subject: RE: MS Office Constants db - where to download for free
Thank you so much!This is what I need.