Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Outlook Automation Error Problem - Can't locate Outlook Module

I have MSOffice Professional 2003 installed on my laptop, and on another
desktop machine. The code below activates Outlook on my desktop machine,
but fails on my lap top and results in a "Automation Error - The specified
module can not be found". Both have identical versions of Excel and Outlook
installed and are running XP SP2.

I assumed that there is something wrong with the Outlook entries in my
registry, so I did a repair. Still had the problem, so I reinstalled
MSOffice on the laptop but my code still can't find outlook! Outlook by
itself seems to run on the laptop with no problem.

I looked at the registry and the entries looked the same for Outlook and
Word but, frankly the registry is Greek to me.

Has anyone had this same problem where VBA can not find the Outlook module?
I really suspect that the Outlook program is not properly registered in the
registry on my laptop machine, but I can't seem to find a way to fix it.

Thanks for your help.

Allan P. London, CPA

__________________________________________________ _____________________________-


Sub CheckForVersion()
MsgBox UpdateApplied
End Sub

Function UpdateApplied()
'Simple 'Late Binding' Example
'Using Early Binding code with Outlook 11.0 Object Library referenced
results in same error

Dim ol As Object
Dim iBuild As Integer

Set ol = CreateObject("Outlook.Application") '<---- Results in
'Automation Error - The specified module can not be found'
iBuild = Int(Right(ol.Version, 4))

' NOTE: The version number format changed between Outlook 98 and 2000
If iBuild = 4201 Then
UpdateApplied = True
Else
UpdateApplied = False
End If
Set ol = Nothing

End Function


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Outlook Automation Error Problem - Can't locate Outlook Module

Hi allan

Check out this page (maybe number 2)
http://www.rondebruin.nl/mail/problems.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl


"Allan P. London" wrote in message ...
I have MSOffice Professional 2003 installed on my laptop, and on another desktop machine. The code below activates Outlook on my
desktop machine, but fails on my lap top and results in a "Automation Error - The specified module can not be found". Both have
identical versions of Excel and Outlook installed and are running XP SP2.

I assumed that there is something wrong with the Outlook entries in my registry, so I did a repair. Still had the problem, so I
reinstalled MSOffice on the laptop but my code still can't find outlook! Outlook by itself seems to run on the laptop with no
problem.

I looked at the registry and the entries looked the same for Outlook and Word but, frankly the registry is Greek to me.

Has anyone had this same problem where VBA can not find the Outlook module? I really suspect that the Outlook program is not
properly registered in the registry on my laptop machine, but I can't seem to find a way to fix it.

Thanks for your help.

Allan P. London, CPA

__________________________________________________ _____________________________-


Sub CheckForVersion()
MsgBox UpdateApplied
End Sub

Function UpdateApplied()
'Simple 'Late Binding' Example
'Using Early Binding code with Outlook 11.0 Object Library referenced results in same error

Dim ol As Object
Dim iBuild As Integer

Set ol = CreateObject("Outlook.Application") '<---- Results in 'Automation Error - The specified module can not be found'
iBuild = Int(Right(ol.Version, 4))

' NOTE: The version number format changed between Outlook 98 and 2000
If iBuild = 4201 Then
UpdateApplied = True
Else
UpdateApplied = False
End If
Set ol = Nothing

End Function



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook 11 Outlook 10 Object Library Compatibility Issues Paul Mac[_4_] Excel Programming 11 May 19th 06 04:27 AM
How can I use Outlook express to send mail rather than Outlook by VBA code new.microsoft.com Excel Programming 5 August 3rd 05 03:45 PM
Late Binding to Outlook from Excel: Outlook modifies email body Lenny Wintfeld Excel Programming 0 December 12th 04 04:03 PM
Outlook Automation Paul Smith[_3_] Excel Programming 3 November 1st 04 06:19 PM
Outlook Automation, Deleting Tasks jjjustinnn Excel Programming 3 January 17th 04 07:11 PM


All times are GMT +1. The time now is 04:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"