M
maryj
I found this code for putting the user name found in Tools, options into the
footer
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = Application.UserName
End Sub
How could this be changed to show the logon name. I tried changing
Application to Environ but that didn't work.
Thanks for your help!!
footer
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = Application.UserName
End Sub
How could this be changed to show the logon name. I tried changing
Application to Environ but that didn't work.
Thanks for your help!!