The_BlackKnight
New Member
- Joined
- Aug 3, 2023
- Messages
- 2
- Office Version
- 365
- Platform
- Windows
Can someone help me with this code? I am only getting username when I click the checkbox. How do I get this to give me the date also?
Sub CheckBox_Date_Stamp()
Dim xChk As CheckBox
Set xChk = ActiveSheet.CheckBoxes(Application.Caller)
With xChk.TopLeftCell.Offset(, 1)
If xChk.Value = xlOff Then
.Value = ""
Else
.Value = Date
.Value = Environ$("UserName")
End If
End With
End Sub
Sub CheckBox_Date_Stamp()
Dim xChk As CheckBox
Set xChk = ActiveSheet.CheckBoxes(Application.Caller)
With xChk.TopLeftCell.Offset(, 1)
If xChk.Value = xlOff Then
.Value = ""
Else
.Value = Date
.Value = Environ$("UserName")
End If
End With
End Sub