WD2000: Macro to Return to the View You Were Using Before Opening Header or Footer (212638)
The information in this article applies to:
This article was previously published under Q212638 SUMMARY
When you run a recorded macro that opens, modifies, and closes the header or footer, you are returned to page layout view when the macro finishes, regardless of which document view you were using before you ran the macro. By removing (commenting) an If...Then statement and adding three lines to the recorded macro, you can modify the macro to return to the view you were in before you ran the macro.
The "More Information" section of this article explains how to use this example macro.
REFERENCESFor additional information, click the article numbers below
to view the articles in the Microsoft Knowledge Base:
212623 WD2000: Macro Programming Resources
226118 OFF2000: Programming Resources for Visual Basic for Applications
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbinfo kbmacroexample kbnofix KB212638 |
---|
|