Craig_Moore
Board Regular
- Joined
- Dec 12, 2018
- Messages
- 64
- Office Version
- 2019
- Platform
- Windows
Hi
I need help with the below code i need the code to find the first empty row and in row A to insert who has opened the sheet and in row B at what time and date that person opened the sheet.
any help is much appreciated
Thanks
Craig
I need help with the below code i need the code to find the first empty row and in row A to insert who has opened the sheet and in row B at what time and date that person opened the sheet.
any help is much appreciated
Thanks
Craig
VBA Code:
Private Sub workbook_open()
Application.ScreenUpdating = False
worksheets("vba download").Unprotect Password:="password"
worksheets("vba download").Activate
If Range("a34").Value = "" Then
Range("a34").Value = Environ("Username")
End If
If Range("b34").Value = "" Then
Range("b34").Value = Time & Date
worksheets("vba download").Unprotect Password:="password"
Application.ScreenUpdating = True
End If
End Sub