A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

CreateObject("Outlook.Application") failing to get outtlook



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old March 14th 08, 10:16 AM posted to microsoft.public.outlook.program_vba
Chris Miller
external usenet poster
 
Posts: 8
Default CreateObject("Outlook.Application") failing to get outtlook

Hi,

I'm having trouble with this call not returning a valid object

I reference a previous post (that I cant find here again)
http://www.devnewsgroups.net/group/m...opic10531.aspx

I believe the cause of this to be setting the default email client in
Internet explorer to something other than outlook.

Is there a (known) way to handle this?

The best I can come up with is checking
[HKEY_CURRENT_USER\SOFTWARE\CLASSES\mailto] in the registry, which gives a
path. This value is set by IE, and checking this value against the registry
keys below


Fisrtly
[HKEY_CLASSES_ROOT\Outlook.Application\CurVer]
Then getting the appropriate version i.e. (Outlook.Application.11) - 11

then
[HKEY_LM\Software\Microsoft\Office\11.0\Outlook\Ins tallRoot]
where 11.0 has been worked out from the previous step

at this point i have two paths that can be compared.

Is there a more elegant solution to this ?


Thanks in advance


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
CreateObject("Scripting.FileSystemObject") stopped working Andrew Hall NZ Outlook and VBA 2 February 15th 07 09:25 PM
"application not found" when attempting to open jpg eganders Outlook - General Queries 0 February 6th 07 12:05 AM
OLK2007 : The Oper Failed : Application.CreateObject("MAPI.Session Bill Billmire Outlook - Using Forms 3 January 7th 07 01:02 AM
"Office (application) not installed for this user" slatons Outlook - Installation 0 December 1st 06 11:11 PM
Change default application used by the "Call Contact" feature Poppu Outlook - General Queries 3 September 1st 06 12:56 AM


All times are GMT +1. The time now is 03:37 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.