L
Lighthouse
How does one address headers and footers with a macro? I'm trying to
write an auto macro that examines a document section by section and if
it finds a particular marker then it needs to modify the header for the
marked section. The marked section may have 1, 2, 3, or more pages.
This is where I get confused. The header is defined for different 1st
pg, odd, and even. I don't know how to abstract these situations (is
that the right term?) in the macro. How can I be sure that I've changed
all the headers that I need to?
The documents that this will run on have a predictable structure. The
"marker" mentioned above is a particular style w/ the text "appendix."
The document structure (by section type)is either:
front matter
"normal" section
"normal" section
"normal" section
"normal" section
index
OR
front matter
"normal" section
"normal" section
"normal" section
"normal" section
"appendix" section
"appendix" section
"appendix" section
index
In the first case, nothing needs to happen. In the second case, the
macro should work its voodoo on the "appendix" sections.
When I do this manually, I go to the last appendix section and "link to
previous" for odd and even header (1st page header requires no change)
all the way forward to the *second* appendix. Then I make my header
changes in the odd/even header which is basically inserting a couple
StyleRef field codes.
Any help or insight would be appreciated. TIA
write an auto macro that examines a document section by section and if
it finds a particular marker then it needs to modify the header for the
marked section. The marked section may have 1, 2, 3, or more pages.
This is where I get confused. The header is defined for different 1st
pg, odd, and even. I don't know how to abstract these situations (is
that the right term?) in the macro. How can I be sure that I've changed
all the headers that I need to?
The documents that this will run on have a predictable structure. The
"marker" mentioned above is a particular style w/ the text "appendix."
The document structure (by section type)is either:
front matter
"normal" section
"normal" section
"normal" section
"normal" section
index
OR
front matter
"normal" section
"normal" section
"normal" section
"normal" section
"appendix" section
"appendix" section
"appendix" section
index
In the first case, nothing needs to happen. In the second case, the
macro should work its voodoo on the "appendix" sections.
When I do this manually, I go to the last appendix section and "link to
previous" for odd and even header (1st page header requires no change)
all the way forward to the *second* appendix. Then I make my header
changes in the odd/even header which is basically inserting a couple
StyleRef field codes.
Any help or insight would be appreciated. TIA