Archive of Mr Excel Message Board
So i was wondering if there is someting like activeshet.pagenumeber
or something?
Please help. Come on Celia this is easy for u ;^)>

You modify your existing line of code to the following:
ActiveSheet.PageSetup.CenterFooter = Application.WorksheetFunction.Roman(ActiveSheet.Index)
HTH,
Chris

I know, but with this code all the pages in one sheet will have the same number, that would be the index of the sheet i am in.
Remember I am trying to number the pages not the sheets.
Thanks

Based on your original attempt, I assumed that there was only one printed page per sheet. Here is a solution that will print all pages in the workbook and increasing the page number by one each time. Uses an XLM macro to determine the number of pages on the sheet to print.
Sub PrintWithRoman()
PageCount = 0
For Each sht In Worksheets
sht.Activate
Pages = ExecuteExcel4Macro("Get.Document(50)")
For n = 1 To Pages
PageCount = PageCount + 1
ActiveSheet.PageSetup.CenterFooter = Application.WorksheetFunction.Roman(PageCount)
ActiveWindow.SelectedSheets.PrintOut From:=n, to:=n
Next n
Next sht
End Sub
HTH,
Chris

Thanks a million this really helps
