How's this:
<font face=Tahoma><SPAN style="color:#00007F">Sub</SPAN> GetPCName()
<SPAN style="color:#00007F">Dim</SPAN> CurrentUserName <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">String</SPAN>
<SPAN style="color:#00007F">Dim</SPAN> PCName <SPAN style="color:#00007F">As</SPAN> <SPAN style="color:#00007F">String</SPAN>
CurrentUserName = Environ("USERNAME")
PCName = Environ("COMPUTERNAME")
MsgBox "PC User Name is: " & CurrentUserName, vbOKOnly + vbInformation, "PC User Name"
MsgBox "PC Name is: " & PCName, vbOKOnly + vbInformation, "PC Name"
<SPAN style="color:#00007F">End</SPAN> <SPAN style="color:#00007F">Sub</SPAN>
</FONT>
HTH,
Smitty