Cannot Create Automation Object Error when creating Outlook object

Hi all, I have today implemented email functionality for a small number of users which interacts with Outlook.

Clicking a button, creates Outlook object, builds an email and opens it in Outlook. Using lotus script.

eg, Set OutlookApp = CreateObject ( “Outlook.Application” )

This works fine for myself and my IT colleagues.

Users are getting the cannot create object error.

My question … do users need a certain level of permissions on their PC to create the Outlook object … ?

I’m thinking that as IT users, we have higher permission levels, hence OK for us but not them.

Hopefully someone can advise as I’m stumped currently.

Thanks in advance.

Andy

Subject: Cannot Create Automation Object Error when creating Outlook object

I found this. I know is is VB but might apply

f you are not the administrator on the machine, that may play a part, but you might want to try code like this (dec section) just in case:

Code:

Dim mess_body As String

Dim appOutLook As Outlook.Application

Set appOutLook = new Outlook.Application

Dim MailOutLook As Outlook.MailItem

Set MailOutLook = appOutLook.CreateItem(olMailItem)

Or maybe use CREATEOBJECT() instead of direct refernces?

Subject: Cannot Create Automation Object Error when creating Outlook object

Some Outlook installs do not register the OLE automation classes. See here: http://social.msdn.microsoft.com/Forums/en-US/78f79673-b191-427d-8452-f3134c7a29b2/class-definition-outlookapplication-not-found-in-outlook-2010-trial?forum=visualfoxprogeneral

-rich

Subject: Cannot Create Automation Object Error when creating Outlook object

Hi, Seems issue was down to the actual install of Office & Outlook.

Uninstalling and reinstalling Office fixed the issue.

Many thanks for the replies.

Cheers