J
Jezebel
It's called 'unlinking' -- .Fields.Unlink; but --
1. Calling it on the ActiveDocument alone is not sufficient, because that
won't pick up fields not in the main body of the document. You need to
iterate the StoryRanges for that.
2. It won't solve your problem anyway (assuming your page numbers are in the
header or footer), because there isn't a separate { PAGE } field for every
page. At most you have first/even/odd pages for each section. Unlinking the
PAGE fields will mean each page shows the same number in each case. In the
simplest case, after unlinking each page will be numbered 1.
As previously suggested: put each document in a seperate section and restart
the numbering in each case, or use PDFs.
1. Calling it on the ActiveDocument alone is not sufficient, because that
won't pick up fields not in the main body of the document. You need to
iterate the StoryRanges for that.
2. It won't solve your problem anyway (assuming your page numbers are in the
header or footer), because there isn't a separate { PAGE } field for every
page. At most you have first/even/odd pages for each section. Unlinking the
PAGE fields will mean each page shows the same number in each case. In the
simplest case, after unlinking each page will be numbered 1.
As previously suggested: put each document in a seperate section and restart
the numbering in each case, or use PDFs.