Excel: Can't Set Page Orientation/Print Reduction Using Macro

Last reviewed: November 4, 1994
Article ID: Q61837
The information in this article applies to:
  • Microsoft Excel for the Macintosh, versions 1.x, 2.2, 3.0

SUMMARY

Microsoft Excel version 4.0 macros can access the page orientation option in the Page Setup dialog box. Using the reduction argument in the PAGE.SETUP command will adjust Excel's reduction option in the Page Setup dialog box.

Microsoft Excel versions 1.x through 3.0 macros cannot access the page orientation and percent-reduction options in the Page Setup dialog box in the File menu.

This limitation occurs because these options are set in the standard Page Setup dialog box, which varies from printer to printer. The Macintosh system software does not support the ability to change these items through a macro.

One possible solution is to use the PAGE.SETUP? command, which allows you to select orientation and reduction manually.

Another solution is to create a "template" document (for example, a worksheet or chart created before the macro was run). Instead of having the macro open a new worksheet or chart, the macro opens this template.


KBCategory:
KBSubcategory:

Additional reference words: 2.2 2.20 3.0 3.00 4.0 4.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: November 4, 1994
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.