Bob Phillips posted this just a little bit ago in the Excel General Questions
NG. It applies to setting a print footer, but you can look at the
application object's events and try to find one that would work for you.
There's a NewWorkbook event and several others that might make sens
------------------------------------------------------------------------------------------
You could try this. Add this code to Personal.xls, and it will then
automatically set the footer for any sheet in any workbook.
Private WithEvents app As Application
Private Sub app_WorkbookBeforePrint(ByVal Wb As Workbook, Cancel As Boolean)
With Wb.ActiveSheet
.PageSetup.LeftFooter = "&""Arial,Bold""&8" & Wb.FullName
End With
End Sub
Private Sub Workbook_Open()
Set app = Application
End Sub
'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code
-------------------------------------------------------------------------------------------