A
Associates
Hi,
I have a word document that consists of three sections, covering page, TOC
and sections or chapters.
Each of these sections have a different footer among themselves. And I use
autotexts made up for each one. So when user wants to add/insert a new
section, he or she can just click a macro that will insert the section by
means of autotexts as shown below
ActiveDocument.AttachedTemplate.AutoTextEntries("mySection").Insert
Where:= _
Selection.Range, RichText:=True
Each of these sections ends with a section break (next page). My concern is
that there is a blank page at the very end of the document because of the
section break (next page). When i deleted it, the page number gets stuffed up
for the whole section.
The Page number for TOC has the format as i, ii, etc. Sections/Chapters, on
the other hand, use the numbering system such as page 1, page 2, and so on.
For example, say the last page for TOC is "Page ii", then followed by the
first page of a new section ideally. But instead, the first page of the
section becomes "Page iii"
I tried to use macro recording to fix the footer but unable to do that as it
did not allow me to access to the footer.
My question is whether there is a way of using VB codes to get into the
footer to change the page number format.
Any helps would be greatly appreciated.
Thank you in advance
I have a word document that consists of three sections, covering page, TOC
and sections or chapters.
Each of these sections have a different footer among themselves. And I use
autotexts made up for each one. So when user wants to add/insert a new
section, he or she can just click a macro that will insert the section by
means of autotexts as shown below
ActiveDocument.AttachedTemplate.AutoTextEntries("mySection").Insert
Where:= _
Selection.Range, RichText:=True
Each of these sections ends with a section break (next page). My concern is
that there is a blank page at the very end of the document because of the
section break (next page). When i deleted it, the page number gets stuffed up
for the whole section.
The Page number for TOC has the format as i, ii, etc. Sections/Chapters, on
the other hand, use the numbering system such as page 1, page 2, and so on.
For example, say the last page for TOC is "Page ii", then followed by the
first page of a new section ideally. But instead, the first page of the
section becomes "Page iii"
I tried to use macro recording to fix the footer but unable to do that as it
did not allow me to access to the footer.
My question is whether there is a way of using VB codes to get into the
footer to change the page number format.
Any helps would be greatly appreciated.
Thank you in advance