View Single Post
 
Old 12-18-2023, 07:16 AM
laith93 laith93 is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jul 2021
Posts: 117
laith93 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
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
Reply With Quote