
Originally Posted by
Muz
I'm having trouble with this macro. How exactly do I create it? When I go Alt-F8 I get the macro window but "create" is greyed out. I tried recording a new macro and then editing it and copy/paste in the marco from your above post but it wouldn't let me do this.
Thanks for your help.
Press Alt/F11 (or rightmouse the sheet tab and select 'View Code', then select ThisWorkbook
Copy the code and Paste it into the code area (of ThisWorkbook)
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim iW As Integer
For iW = 1 To Worksheets.Count
With Worksheets(iW)
.PageSetup.RightFooter = "Last Modified By: " & Application.UserName & " On: " & Format(Now, "m/d/yy")
End With
Next iW
End Sub
Bookmarks