najamabbas
New Member
- Joined
- Jun 10, 2015
- Messages
- 9
- Office Version
- 2016
- Platform
- Windows
Good morning folks, I am trying to populate excel/windows username in a cell and using following formula:
Sub GetUser()
Range("Q299").Value = Environ("UserName")
End Sub
Sub GetUser()
Range("Q300").Value = Application.UserName
End Sub
But it's not working. Any suggestion?
Sub GetUser()
Range("Q299").Value = Environ("UserName")
End Sub
Sub GetUser()
Range("Q300").Value = Application.UserName
End Sub
But it's not working. Any suggestion?