Solved

calling outlook function that's in a different vbaproject.otm

Posted on 2009-05-12
5
237 Views
Last Modified: 2012-05-06
I'm working on a computer that has more than one user. I'm trying to send an email from Access and have vba that instantiates outlook; Set myOlApp = CreateObject("Outlook.Application")
But, even if I have outlook open, myOLApp ends up referring to another instance of outlook (a different vbaproject.otm). For what I'm doing, the instance of outlook vb needs to be open, and since it's not, I'm getting error 438 (Object doesn't support this property or method).
Any ideas?
thanks for looking and your suggestions
0
Comment
Question by:avoorheis
  • 3
  • 2
5 Comments
 
LVL 76

Expert Comment

by:David Lee
ID: 24366896
Hi, avoorheis.

There is only one copy of vbaproject.otm per Windows profile.  Are you saying that Outlook is accessing one from another Windows profile, or are you saying that you have more than one in your profile and it's accessing the wrong one?
0
 

Author Comment

by:avoorheis
ID: 24367106
accessing the one in another profile
0
 

Author Comment

by:avoorheis
ID: 24367117
actually, Access is accessing another profile than the currently logged in user.
0
 
LVL 76

Accepted Solution

by:
David Lee earned 500 total points
ID: 24367232
That's a problem.  Outlook can only see the vbaproject.otm file in the current profile.  I t cannot see or use one from another profile.
0
 

Author Comment

by:avoorheis
ID: 24367406
thanks
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Set OWA language and time zone in Exchange for individuals, all users or per database.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now