I have a workbook with several tabs where the page numbers all need to be in the lower right footer in lower case Roman Numerals. The code I used is below. The page numbers are only on the 1st page of the document. I need them to number consecutively across all tabs. Right now I am only getting a page number of i on the very 1st page. I also need the page numbering to start with page 33 (in Roman Numerals of course). Any help is appreciated, I'm new to Macros.
Sub RomanPageNums()
Dim iPages As Integer
Dim J As Integer
' Get count of pages in active sheet
iPages = ExecuteExcel4Macro("Get.Document(50)")
' Loop through all the pages
' Print worksheet, page by page
With ActiveSheet
For J = 1 To iPages
' Set page letter
.PageSetup.RightFooter = LCase(Application.Roman(J))
' Print page J
.PrintOut From:=J, To:=J
Next J
End With
End Sub
Sub RomanPageNums()
Dim iPages As Integer
Dim J As Integer
' Get count of pages in active sheet
iPages = ExecuteExcel4Macro("Get.Document(50)")
' Loop through all the pages
' Print worksheet, page by page
With ActiveSheet
For J = 1 To iPages
' Set page letter
.PageSetup.RightFooter = LCase(Application.Roman(J))
' Print page J
.PrintOut From:=J, To:=J
Next J
End With
End Sub