Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outlook - changing CurrentUser in VBA?

Status
Not open for further replies.

cresbydotcom

Technical User
May 22, 2006
234
ny ideas how to do this? (Outlook 2000 specifically)

I can find the properties of a namespace object eg -
objNS.SyncObjects.Item(x) and that gives me Account data for each account I have set up.
and similarly I can see what the current user is from eg objNS.CurrentUser (all properties are read only)
but the only way to set the current user that I can find is to manually set it as the default (or send an email from one "Account" and hope the current user remains as per last use.)

I haven't found a method or statement or property that can set the current user to the Account of my choice in VBA.
 

As nobody else has come forward, I'll answer as best I can.

I don't think this is possible - and, even if it is, it certainly won't work when you upgrade to SP2 (I think) or newer versions which have the Object Model Guard in place. The best I think you can do is what you know already - to send mail from a different account.

Enjoy,
Tony

--------------------------------------------------------------------------------------------
We want to help you; help us to do it by reading this: Before you ask a question.

Professional Office Developers Association
 
Thanx

I did try sendkeys to set the default user but once the focus becomes the dialog I can't send to the dialog. I have been round this loop before.

Fortunately the most likely scenario is for me to use it on one account for the moment.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top