Hi, here is the code I am trying to use, it asks for the 1st and last page numbers and always counts from page 1, I just want to call page 1 a different number may be 21 or 41.
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim Num1 As Long
Dim Num2 As Long
Num1 = Application.InputBox(Prompt:="Please enter the First page.", Title:="Starting Page No", Type:=1)
Num2 = Application.InputBox(Prompt:="Please enter the Last page.", Title:="Ending Page No", Type:=1)
Dim wrkSht As Worksheet
For Each wrkSht In ActiveWindow.SelectedSheets
wrkSht.PageSetup.LeftFooter = "Page " & "&P of " & Num2
Next wrkSht
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Bookmarks