Thread: Total of pages
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron de Bruin Ron de Bruin is offline
external usenet poster
 
Posts: 11,123
Default Total of pages

Hi Rodrigo

You can try

Sub test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
MsgBox TotPages
End Sub


--
Regards Ron de Bruin
http://www.rondebruin.nl



"Rodrigo Ferreira" wrote in message ...
How can I get total of pages (before print) using macro?

--

Rodrigo Ferreira