MyLady


Hey,

When I try to run Outlook I get this error message, Automation error (Error 440) "The specified module could not be found".

Sub Outlook()
Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItem(olMailItem)
myItem.Display
End Sub

What is wrong and how do I fix it

Best Regards

Cathrine




Re: Outlook, Automation error (Error 440) "The specified module could not be found"

MyLady


Hey allĄ­

Can someone please try to help me out of this error problem

Cath






Re: Outlook, Automation error (Error 440) "The specified module could not be found"

ADG

Hi

I pasted your code into a new module in an empty Excel Workbook and tested it, all worked well, a new mail message appeared on screen. I have the below references selected.

Visual Basic for Applications

Microsoft Excel 11.0 Object Library

OLE Automation

Microsoft Office 11.0 Object Library

If you have these references selected I guess its time to reload office on your machine as one of the components must not be registered correctly






Re: Outlook, Automation error (Error 440) "The specified module could not be found"

MyLady

Hey,

Thanks for your reply!

Yes, I have these references selected. I guess your right by reloading office, if not anybody else can come up with something.

Cath