Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Printing / July 2004

Tip: Looking for answers? Try searching our database.

Print Page Number in Roman Numerals

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Asif Rahman - 11 Jul 2004 08:43 GMT
Hi!
Is it possible to print page numbers in roman numerals? How?
Thanks in advance.
~asif
Jim Cone - 11 Jul 2004 17:51 GMT
Asif,

A far as I know, it is not possible without using a macro.

The following macro code will print all of the pages on the active sheet.
It adds the page number to the right footer.  They are printed as... "Page ll of lll."

'---------------------------------------------------------
Sub DoItLikeTheRomans()
'Jim Cone July 11, 2004
Dim strRomanAll    As String
Dim strRomanEach   As String
Dim lngTotalPages  As Long
Dim lngPageToPrint As Long

'Find the total number of pages to print.
lngTotalPages = ExecuteExcel4Macro("get.document(50)")
'Convert the total number of pages to Roman.
strRomanAll = WorksheetFunction.Roman(lngTotalPages)

'Go thru each page on the sheet.
For lngPageToPrint = 1 To lngTotalPages
   'Convert each single page number to Roman.
    strRomanEach = WorksheetFunction.Roman(lngPageToPrint)
   'Insert the Roman text into the right footer.
    ActiveSheet.PageSetup.RightFooter = "Page " & strRomanEach & "  of  " & strRomanAll
   'Print the page.
    ActiveSheet.PrintOut lngPageToPrint, lngPageToPrint
Next 'page
End Sub
'---------------------------------------------------

Regards,
Jim Cone
San Francisco, CA

> Hi!
> Is it possible to print page numbers in roman numerals? How?
> Thanks in advance.
> ~asif
Asif Rahman - 12 Jul 2004 05:57 GMT
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.