Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default add a footer to excel through VB code

Is it possible to add a footer to an excel doc. through VB code?
Any help will be highly appreciated.

Thank U all in advance,
Tej

  #2   Report Post  
Posted to microsoft.public.excel.programming
ADG ADG is offline
external usenet poster
 
Posts: 76
Default add a footer to excel through VB code

Hi Tej

See below:

With ActiveSheet.PageSetup
.LeftFooter = "&BClee Hill Electrics Confidential&B"
.CenterFooter = "&D"
.RightFooter = "Page &P "
End With

With tasks like this use the macro recorder, then delete the extra items
which are not required.

--
Tony Green


" wrote:

Is it possible to add a footer to an excel doc. through VB code?
Any help will be highly appreciated.

Thank U all in advance,
Tej


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
what code pulls in contents of a cell in an Excel header/footer? Ronnyk Excel Discussion (Misc queries) 3 September 13th 07 08:18 PM
How do I code authorship into a footer? mkblue Excel Discussion (Misc queries) 6 January 18th 07 12:09 AM
VB. NET Code to Change Excel Worksheet Header/Footer. Elena Excel Programming 2 March 13th 06 06:17 PM
Formatting footer in VBA code Frantic Excel-er Excel Discussion (Misc queries) 2 June 10th 05 04:04 PM
Code for Page Footer Font Size John Michl[_2_] Excel Programming 1 July 11th 03 05:15 PM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"