XL5: Page Setup Settings Not Saved with Visual Basic Modules

Last reviewed: September 12, 1996
Article ID: Q111087
The information in this article applies to:

- Microsoft Excel for Windows, version 5.0

SYMPTOMS

In Microsoft Excel version 5.0, the Page Setup settings for Visual Basic modules are not saved. When you reopen a workbook containing modules, the Page Setup settings for the modules will revert to their default settings.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Excel for Windows version 5.0c.

MORE INFORMATION

If you change the Page Setup settings for a Visual Basic module, those settings will be preserved only as long as the workbook containing the module is open. When you close the workbook, Page Setup settings for modules revert to their default settings, even if you save the workbook.

In Microsoft Excel version 5.0 for Windows, the default Page Setup settings for a module are as follows:

   Tab       Setting              Value
   -------   -----------------    -------------------------------------

   Page      Orientation          The default orientation as set in
                                  Windows Control Panel

             Scaling              100% of normal size

             Paper Size           The default paper size as set in
                                  Windows Control Panel

             First Page Number    Auto

   Margins   Top                  1 inch
             Bottom               1 inch
             Left                 0.75 inch
             Right                0.75 inch
             Header (from edge)   0.5 inch
             Footer (from edge)   0.5 inch

   Header/   Header               <the module's name>

   Footer    Footer               Page 1


KBCategory: kbprint
KBSubcategory:

Additional reference words: 5.00



THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 12, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.