Function UserNameWindows() As String
UserName = Environ("USERNAME")
End Function
I tried using the above function and it compiles properly but there is no output in the cell I apply the function to. I can see the function in the insert function field below the tool bars, but the cell is blank.
I am trying to fill the cell with the current logged in user's name.
Anyone have any suggestions?
UserName = Environ("USERNAME")
End Function
I tried using the above function and it compiles properly but there is no output in the cell I apply the function to. I can see the function in the insert function field below the tool bars, but the cell is blank.
I am trying to fill the cell with the current logged in user's name.
Anyone have any suggestions?