Hi, how insert in the sheet a COUNTER of printed pages? After page (pages) printed number increases?
K Kintamasis Oct 14, 2007 #1 Hi, how insert in the sheet a COUNTER of printed pages? After page (pages) printed number increases?
G Gord Dibben Oct 14, 2007 #2 Not sure what you mean from your description. Nmber of pages in one print job? Sub Num_Pages() Dim TotalPages As Long TotalPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)") With ActiveSheet .Range("A1").Value = TotalPages & " Pages" ActiveSheet.PrintOut End With End Sub Gord Dibben MS Excel MVP
Not sure what you mean from your description. Nmber of pages in one print job? Sub Num_Pages() Dim TotalPages As Long TotalPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)") With ActiveSheet .Range("A1").Value = TotalPages & " Pages" ActiveSheet.PrintOut End With End Sub Gord Dibben MS Excel MVP