View Single Post
 
Old 12-18-2025, 11:54 AM
Charles Kenyon Charles Kenyon is offline Windows 11 Office 2021
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,601
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Younan View Post
Hi,

Thanks for your reply, i am asking for VBA cause above this line i will write different text almost in every page, which as i think cant be done with header.
bEst regards

Younan

Look into the StyleRef Field. That lets you have a single header that has different text on every page depending on the content of the page.
You can have a bottom border for the paragraph. This would best be done as a modification of the Header style.
By the way, when you type the thee hyphens --- and press Enter, what you get is a bottom paragraph border created by AutoFormat As You Type.

See also Word Doesn't Know What a Page Is by Daiya Mitchell, MVP( https://wordmvp.com/Mac/PagesInWord.html).
Reply With Quote