View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
L.White L.White is offline
external usenet poster
 
Posts: 32
Default Last user to make a change

I have the following code at the workbook level of a spreadsheet

Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As
Boolean)
Range("LastChange").Value = Format(Now(), "dd mmm yyyy")
Range("LastUser").Value = Environ("username")
End Sub

I have the named ranges. Why doesn't this work?

LWHite