Pavithra Try this
under Headdeara and footers Insert Page nomber and also pages the symbol # and insert "/" and then click ++ it should appear like &[Page]/&[Pages] Let me know if it works Happy excelling S Baloo On Thu, Sep 25, 2008 at 9:00 PM, pavithra murthy <[EMAIL PROTECTED]>wrote: > > hi > i want the code for page numbers to appear on top of the print preview of > my report on top on the right side....similarly it has to increment for each > page > > for eg: if 3 pages are there it should come like > 1st page : 1/3 > 2nd pg :2/3 > 3rd pg :3/3 > > i needed a generalized function ....so that a variable will increment each > time for each page in print preview .,,,,,very urgent > > i will be thank ful if anyone could help me out in this issue. > > > > --~--~---------~--~----~------------~-------~--~----~ Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To post to this group, send email to excel-macros@googlegroups.com For more options, visit this group at http://groups.google.com/group/excel-macros?hl=en Visit & Join Our Orkut Community at http://www.orkut.com/Community.aspx?cmm=22913620 Visit the blog to download Excel tutorials at http://www.excel-macros.blogspot.com To Learn VBA Macros Please visit http://www.vbamacros.blogspot.com To see the Daily Excel Tips, Go to: http://exceldailytip.blogspot.com -~----------~----~----~----~------~----~------~--~---