Quote:
Originally Posted by gmayor
How about
|
Thanks so much, Mr. Graham,
It works perfectly, but just for clarification
the page number is placed on the
left, although the
Code:
oRng.ParagraphFormat.Alignment = wdAlignParagraphRight
84.png
So I changed it to left to appear on the
right (vice versa)
Code:
oRng.ParagraphFormat.Alignment = wdAlignParagraphLeft
So I don't know if it's associated with file settings or Windows settings.
Lastly,
Dear Graham, I tried to
add custom text using
Code:
Dim aRng As range
Set aRng = oFooter.range
aRng.Fields.Add aRng, wdFieldIncludeText, "laith", True
but I get many error, not specified, not valid ...etc
Thanks