Buzz
You obviously did not look at all the replies you got.
To get path and name on each sheet of an existing workbook you can select all
sheets and set up your header/footer on the active sheet.
All sheets selected will get same set up.
To have it as default on all new workbooks, you can set up a new workbook as you
wish then save as>filetype>excel template)*.xla)
Name it BOOK and store it in your XLSTART folder.
This will be the template for all new workbooks when you click on File>New(not
file>new...) or hit the New Icon
You can also save a new workbook with one sheet in it with your header/footer
set up.
Save As a template. Name it SHEET and store in your XLSTART folder.
This will the default Insert>New Worksheet.
You can also use a macro to set all sheets header/footer
Sub Path_All_Sheets()
Set wkbktodo = ActiveWorkbook
For Each ws In wkbktodo.Worksheets
ws.PageSetup.RightFooter = ActiveWorkbook.FullName & " " & Chr(13) _
& Application.UserName & " " & Date
Next
End Sub
Strip out the parts you don't want.
Gord Dibben MS Excel MVP
Hey all,
Thanks in advance for all the knowledge. Ok I followed the
instructions on:
http://www.ozgrid.com/VBA/WorkbookPath.htm but that only gives me:
[Path]File1(not actually the file name!). I want the drive c:, d: or
L: then folder then file. Is this possible.
Thanks again.
Buzz
Gord Dibben MS Excel MVP