Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I automatically add filepath to an Excel footer 1

Status
Not open for further replies.

bigcat

Technical User
Aug 25, 2000
2
US
How do I automatically add filepath to an Excel footer
 
Create a macro that records step by step the process you currently use to insert the footer. Be sure to save the macro in the Personal.xls.

Add the macro as a button on the tool bar.

Then all you have to do is click on the button to insert the footer information you want.
 
You can put the MACRO in the 'This Workbook' VBE module as a Before Print Sub. It will then print the footer without having to click on a command button.

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = "&F &A"
End Sub

You can change LeftFooter to RightFooter or CenterFooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top