ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Pages (https://www.excelbanter.com/excel-programming/276756-pages.html)

Dominic Robinson

Pages
 
Is there any property of the worksheet or workbook object
that will tell me the number of pages that will be
printed?

Don Guillett[_4_]

Pages
 
will this work?

Sub countpb()
MsgBox ActiveSheet.HPageBreaks.Count
End Sub

"Dominic Robinson" wrote in message
...
Is there any property of the worksheet or workbook object
that will tell me the number of pages that will be
printed?




Ron de Bruin

Pages
 
Try this

Sub test()
Totpage = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
MsgBox Totpage
End Sub


--
Regards Ron de Bruin
(Win XP Pro SP-1 XL2002 SP-2)
www.rondebruin.nl



"Dominic Robinson" wrote in message ...
Is there any property of the worksheet or workbook object
that will tell me the number of pages that will be
printed?





All times are GMT +1. The time now is 10:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com