Hi guys,
I've been tasked with creating some custom forms in Outlook using VBScript. Frankly this MS form design tool sucks, but that's another rant for another soapbox.
What I'm trying to figure out how to do is to insert the current user's name into a field.
I have a text box ("textbox") and it is assigned the field name ("someuser"). From what I can tell I want to use the NameSpace class to access the CurrentUser property and this property is like Recipient which has the property Name.
I though I could just copy the data like this:
someuser = Application.NameSpace.CurrentUser.Name
But apparently I cannot. I went out and got the "VBScript in a Nutshell" book from O'Reilly, but it really doesn't have much in the way of source code examples.
Can anyone help me here?
I've been tasked with creating some custom forms in Outlook using VBScript. Frankly this MS form design tool sucks, but that's another rant for another soapbox.
What I'm trying to figure out how to do is to insert the current user's name into a field.
I have a text box ("textbox") and it is assigned the field name ("someuser"). From what I can tell I want to use the NameSpace class to access the CurrentUser property and this property is like Recipient which has the property Name.
I though I could just copy the data like this:
someuser = Application.NameSpace.CurrentUser.Name
But apparently I cannot. I went out and got the "VBScript in a Nutshell" book from O'Reilly, but it really doesn't have much in the way of source code examples.
Can anyone help me here?