ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   add a footer to excel through VB code (https://www.excelbanter.com/excel-programming/362752-add-footer-excel-through-vbulletin-code.html)

[email protected]

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


ADG

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




All times are GMT +1. The time now is 12:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com