View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default Saving username into a cell

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Sheets("Sheet1").Range("A1").Value = Date & " " & Time
Sheets("Sheet1").Range("A2").Value = Environ("username")
End Sub



"thudson" wrote:

I would like to enter the name of the last person to modify a document into a
specific cell so that when I look at it I can see who last changed the
document.

Is this even possibe?