RichCowell
Board Regular
- Joined
- Dec 5, 2013
- Messages
- 121
- Office Version
- 365
- Platform
- Windows
Hi all,
I've got a document I'm using as a template with several sections.
Page 1 is a title page with the:
Those three items are also included in the header of each page.
When I'm ready to finalise the file and update everything with F9, only the first page of each section updates - although the other pages show as having updated, when I exit the Header & Footer, the subsequent pages in each section revert back to the original text, and only the first page in each section has updated.
I've seen elsewhere online that it may be resolved with the following code:
Which I've added but it doesn't seem to make any difference.
Is anyone able to point me in the right direction?
(Also - if anyone knows of a way of updating the headers in all sections with one command rather than having to do each section individually, I'd be eternally grateful too!)
Thanks,
Rick
I've got a document I'm using as a template with several sections.
Page 1 is a title page with the:
- Document Title
- Published Date
- Updated Date
Those three items are also included in the header of each page.
When I'm ready to finalise the file and update everything with F9, only the first page of each section updates - although the other pages show as having updated, when I exit the Header & Footer, the subsequent pages in each section revert back to the original text, and only the first page in each section has updated.
I've seen elsewhere online that it may be resolved with the following code:
VBA Code:
foreach (Aspose.Words.Bookmark bookMark in
doc.Range.Bookmarks)
{
bookMark.Text = “New Text”;
}
Is anyone able to point me in the right direction?
(Also - if anyone knows of a way of updating the headers in all sections with one command rather than having to do each section individually, I'd be eternally grateful too!)
Thanks,
Rick