Getting footer to display full file pathway

G

Gord Dibben

Marie

If using XL2002, there are icons in Headers/Footers Custom section for Path
and Filename.

If you are not using XL2002 you have to use a macro to do this.

Sub PathInFooter()
ActiveSheet.PageSetup.RightFooter = ActiveWorkbook.FullName
End Sub

The same code could be placed into a Workbook_BeforePrint routine.

If unfamiliar with macros visit David McRitchie's website for basics.

http://www.mvps.org/dmcritchie/excel/getstarted.htm

Gord Dibben Excel MVP - XL97 SR2 & XL2002
 
M

Marie

Thanks. I tried this but it didn't work. It showed the
file name but not the path. Came out as just path]and then
the file name. Is it something to do with being on a
network?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top