Headers/Footers

wmclachlin

New Member
Joined
May 8, 2002
Messages
2
Sorry to trouble you all with such a basic question. But anyways.

My question is how can I insert the path to the filename into the header/footer? It's nice to be able to insert the filename but is pretty useless if others don't know where to find it.

Thanks,
Wes
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
go to page setup, click on the footer/header tab, select custom header, pick the field in the middle(or wherever you want it) and finally,click on the little Excel icon one from the right on the custom header tab.

Corticus
 
Upvote 0
Here's a macro for your PERSONAL macro workbook:

Sub InsertPathInFooter()
' InsertPathInFooter Macro
' Macro recorded 1/25/2002 by bkatc
ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.FullName
End Sub

_________________
...and I always put the seat down.
This message was edited by Barry Katcher on 2002-05-09 07:40
 
Upvote 0
Sure. Click on:
File
Page Setup
Header/Footer
Custom Footer
Then, click on the section you want and type in the full path and file name.

This is exactly what the macro does in 1/1000 of the time.
 
Upvote 0
I like to use this code incase I change the filename (it doesn't help if you change the path though):
ActiveSheet.PageSetup.LeftFooter = ActiveWorkbook.Path & "&F"
 
Upvote 0

Forum statistics

Threads
1,214,523
Messages
6,120,038
Members
448,940
Latest member
mdusw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top