Hi Folks
I am trying to write a function for the above. It seems simple but I am getting the answer #NAME? with the following code
[VBA] Function GetName () As String
GetName = Application.UserName
End Function
[/VBA]
in the cell I wish to have the username, I have typed =GetName. What am I doing wrong?