PDA

View Full Version : [SOLVED:] Automatically Update Header Content



Geeta2013
12-19-2022, 07:44 AM
Hi Guys,
haven't needed help in a while. I do today and [SOLVED] Select text and move to a header - how to do that in VBA (vbaexpress.com) (http://www.vbaexpress.com/forum/showthread.php?64472-Select-text-and-move-to-a-header-how-to-do-that-in-VBA) almost has what I need. I apologize if I was not supposed to post as an add-on but as a new request.

Issue: I have a hard coded date in my Word document. I want to update that date manually but as soon as I do, I want the new date to be added to my document header.

Thanks ahead ...
Kind regards,
Geeta

Chas Kenyon
12-19-2022, 03:27 PM
For an example of using a StyleRef Field (https://www.addbalance.com/usersguide/fields.htm#STYLEREF) to do this, look at my Basic Letterhead Template (https://addbalance.com/word/download.htm#BasicLetterheadTemplate). Insert a page break and look at the second-page header.
Type a different date on the first page. It will change in the continuation-page header.