How do I include the name of the last person who saved a Excel do.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Excel under File > Properties > Statistics it includes the name of the
last person who saved a workbook. I want to include in the footer. How do I
do that?
 
Valerie

Copy/paste this code into ThisWorkbook module.

Private Sub Workbook_BeforeSave(ByVal SaveAsUI _
As Boolean, Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = "Last Saved By: " _
& Application.UserName & " On " & Date
End Sub

'delete & " On " & Date if date no needed

To do that, right-click on the Excel logo left of "File" on the menu bar or on
logo at left side of window if running non-maximized,

Select "View Code".

Copy/paste the above into the module.


Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top