By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,105 Members | 1,048 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,105 IT Pros & Developers. It's quick & easy.

Cannot create Outlook Object?

P: n/a
I use the following code
Dim OlApp As Outlook.Application
Set OlApp = GetObject(, "Outlook.application")

and if that generates and error (Outlook is not running) I use
Set OlApp = CreateObject("Outlook.application")

This seems to work most of the time be on some computers I get an
error message saying that an Outlook object cannot be created.
MSOUTL9.OLB is in the references. This seems to automatically change
to MSOUTL10.OLB if a newer version of Outlook is being used.
I cannot find why this happens. Can anyone help please.
Alex
Nov 13 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.