The information in this article applies to:
SYMPTOMSIn Microsoft Excel for Windows versions 5.0 and 5.0c, the Zoom property for the PageSetup object may not scale worksheets correctly. The Scaling setting may appear correctly in the Page Setup dialog box, but the actual scaling of the sheet does not occur until you click OK interactively from the Page Setup dialog box. CAUSEThe Zoom property may not be set correctly if the active printer is a Postscript printer. WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty
either expressed or implied, including, but not limited to, the implied warranties of
merchantability and/or fitness for a particular purpose. This article assumes that you
are familiar with the programming language being demonstrated and the tools used to
create and debug procedures. Microsoft support professionals can help explain the functionality
of a particular procedure, but they will not modify these examples to provide added
functionality or construct procedures to meet your specific needs. If you have limited
programming experience, you may want to contact a Microsoft Certified Solution Provider
or the Microsoft fee-based consulting line at (800) 936-5200. For more information about
Microsoft Certified Solution Providers, please see the following page on the World Wide Web:
http://www.microsoft.com/mcsp/For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/overview/overview.aspUsing the Microsoft Excel 4.0 "PAGE.SETUP" macro function, you can set the print scaling correctly for the worksheet. The following macro demonstrates how to use this Microsoft Excel 4.0 macro function in a Visual Basic for Applications procedure. The following procedure will set the print scaling of the active worksheet at 25%:
STATUSMicrosoft has confirmed this to be a problem in the versions of Microsoft Excel mentioned at the beginning of this article. This problem no longer occurs in Microsoft Excel for Windows 95 version 7.0. MORE INFORMATION
Your worksheet may not fit exactly on the number of pages you want. You can
scale your printed work to fit on more or fewer pages than it would at
normal size, or you can specify a certain number of pages for your printed
worksheet. You can select both choices by clicking Page Setup on the File
menu and setting the scaling on the Page tab.
Q109976 XL5: Visual Basic and the Excel Version 4.0 Macro LanguageTo confirm if the active printer is a Postscript printer, follow these steps:
REFERENCES
Microsoft Excel, version 5.0, "Microsoft Excel User's Guide," Chapter 14,
"Setting Up What to Print"
Zoom Property Additional query words: 5.00a 5.00c
Keywords : kbprint kbdta kbdtacode OffVBA KbVBA xlwin |
Last Reviewed: July 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |