That would work.
Unless of course something like a script stopper prevents instantiating
scripting objects.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Mark J. McGinty" wrote in message
...
"Ken Slovak - [MVP - Outlook]" wrote in message
...
Form code (VBScript) can't use Win32 API functions.
In that case:
Set WshNetwork = CreateObject("Wscript.Network")
UserName = WshNetwork.UserName
-Mark