Worksheet name in footer
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.PageSetup.LeftFooter = .Name
End With
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
--
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
"mike_vr" wrote in message
...
Hi all,
Relatively simple one I hope. Trying to insert a footer that automatically
updates to the name of the current worksheet. I've got &[Path] to show the
directory, &[File] to show the file name, but what would be the short way
to
get the worksheet name in the footer? &[???]
Thanks in advance,
Mike
|