View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
[email protected] ramesh.venkat@target.com is offline
external usenet poster
 
Posts: 1
Default insert pagenumber in PageSetup in Excel using VB.net

Hi ,

I'm creating an excel worksheet in VB.NET

While setting the print properties , I was able to print the date on
the left footer
..PageSetup.LeftFooter = "Printed on " & Today.ToShortDateString

I want to insert a pagenumber in custom footer for Excel .
At the right footer , it should print like " Page 1 of 4"
The macro is &[Page] of &[Pages] in excel.

I am not able to find the property for page and pages

If somebody could help me , I'd appreciate it


Thanks in Advance,

ramesh