craigexcel
Active Member
- Joined
- Jun 28, 2006
- Messages
- 295
- Office Version
- 2016
- Platform
- Windows
In looking for a way for VB to specifically recognize me as the person opening a workbook, I came across WinUsername. However, when the following is executed, a no (or a null?) value is returned.
Dim UserName As String
UserName = WinUsername
UserName = MsgBox("username is " & UserName, vbOKOnly)
I'm working on a company network. Is there another way for WinUsername to specifically identify me, or can you suggest alternate VB that would execute ONLY when I open the workbook? Thanks.
Dim UserName As String
UserName = WinUsername
UserName = MsgBox("username is " & UserName, vbOKOnly)
I'm working on a company network. Is there another way for WinUsername to specifically identify me, or can you suggest alternate VB that would execute ONLY when I open the workbook? Thanks.