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 / Programming / March 2006

Tip: Looking for answers? Try searching our database.

insert pagenumber  in PageSetup in Excel using VB.net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ramesh.venkat@target.com - 21 Mar 2006 02:56 GMT
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
Tom Ogilvy - 21 Mar 2006 03:54 GMT
       .LeftFooter = "Printed on &D"    ' Date
       .CenterFooter = ""
       .RightFooter = "page &P of &N"   ' page n of m

Don't be afraid to use the macro recorder.

Signature

Regards,
Tom Ogilvy

> Hi ,
>
[quoted text clipped - 15 lines]
>
> ramesh
 
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.