Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 12-18-2023, 07:16 AM
laith93 laith93 is offline Adding footer page number with custom style Windows 10 Adding footer page number with custom style Office 2019
Competent Performer
Adding footer page number with custom style
 
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding footer page number with custom style Updating page number in table cells in footer in each page nyconfidential Word VBA 1 08-13-2022 03:37 PM
Adding footer page number with custom style Page number shows up as { PAGE } instead of number and question about area allowed for footer dw85745 Word 3 01-16-2022 03:19 PM
Don't want page number or date in footer on first page, do want graphic in header. dianahbr Word 2 02-23-2018 09:25 AM
Adding footer page number with custom style Footer for page numbers recently started showing a colored field when adding page numbers thefonebug Word 12 10-24-2016 05:18 AM
Adding footer page number with custom style Total Page number incorrect in the first page footer mmathisekar Word 11 06-16-2016 06:00 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:13 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft