Pages

  • Thread starter Thread starter Dominic Robinson
  • Start date Start date
D

Dominic Robinson

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

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top