View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Frank Kabel Frank Kabel is offline
external usenet poster
 
Posts: 3,885
Default oh, and another thing

Hi
try

msgbox Environ("UserName")

-----Original Message-----
in addition to my previous entry and completely un-
related, Is there anyway to return a string for
whichever user is logged on? We use Xp and log in in the
usual way and it would be useful to have something like

dim currentuser as string

if currentuser = "ARoberts" then
usefform21.show
blah blah blah
end if


.