How to Determine How Many Pages Will Be Printed (139405)
The information in this article applies to:
- Microsoft Excel 97 for Windows
- Microsoft Excel for Windows 95
- Microsoft Excel for Windows 5.0
- Microsoft Excel 98 Macintosh Edition
This article was previously published under Q139405 SUMMARY
Microsoft Visual Basic for Applications does not provide a method to
determine the total number of pages that will print in a worksheet.
However, you can use the ExecuteExcel4Macro method to use the
GET.DOCUMENT(50) macro sheet function to return the total number of pages
that will be printed on the active worksheet.
REFERENCES
Additional information on the Get.Document macro function can be found in
the Excel 4.0 Function reference manual. In Microsoft Excel 5.0, additional
information is contained in the Microsoft Excel 5.0 version of the
MACROFUN.HLP file under Visual Basic Equivalents for Excel Macro Sheet
functions.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbdtacode kbhowto kbprint kbProgramming KB139405 |
---|
|