Hi Frank - can this be used for making a default 'new' when one opens excel for the first time? I'm using Version 2000 and I've created a macro from one of the other suggestions prior, but this means that in the new 'template' that I've created, I have to run the macro before I get the new file path and filename to appear. Is there a way to do this automatically? Or does the macro below autoupdate the path and will work with a 'template' ... like the normal.dot in word? Thanks in advance!
----- Frank Kabel wrote: -----
Hi
depending on your Excel version you need VBA for doing this. Put the
following code in your workbook module:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
Dim wkSht As Worksheet
For Each wkSht In Me.Worksheets
With wkSht.PageSetup
.CenterFooter = Me.FullName
End With
Next wkSht
End Sub
--
Regards
Frank Kabel
Frankfurt, Germany
I know I can get filename with &[File]. Is there
something for folder path???