Author information wanted (Outlook 2003/SP2)

  • Thread starter Catharine Richardson
  • Start date
C

Catharine Richardson

I'm designing a custom form based on the task form.
I need to capture the user name of the person who creates the task
I have looked at the following fields
Author - remains blank
Owner - defaults to the name of the mailbox where form resides (which is not
what I want)
Organizer- remains blank
Role - remains blank

So in frustration, I created a custom field "Creator2" and wrote the
following script and saved it in the form.
Function Item_Open()
Dim strCurrentUser 'as String

strcurrentuser=Application.GetNamespace("MAPI").CurrentUser
item.userproperties("Creator2")=strcurrentuser
End Function

This works beautifully, until I try to run it from a the form residing in
the shared mailbox. In which case no code will run at all.

Following advice I placed the form in Personal Library, where it will run -
but now it saves to the wrong location.

So, I'm back to square one - is there a method of capturing the current user
name?
 
S

Sue Mosher [MVP-Outlook]

To get code to run for an item in a shared mailbox, you need to tweak the registry. See http://www.outlookcode.com/d/secforms.htm

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top