XL: How to Determine How Many Pages Will Be Printed (213810)
The information in this article applies to:
- Microsoft Excel 2000
- Microsoft Excel 2002
This article was previously published under Q213810 For a Microsoft Excel 97 and earlier and Microsoft Excel 98 and earlier version of this article, see 139405.
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 Function reference manual.
Modification Type: | Major | Last Reviewed: | 11/3/2003 |
---|
Keywords: | kbdtacode kbhowto kbprint kbProgramming KB213810 |
---|
|