Problem with sending messages

A

Adam

Hi,

I am using the following statement to activate outlook to be able to send a
few messages:

Dim outapp As Object
Set outapp = CreateObject("Outlook.Application")
outapp.Session.Logon

In the second line I get an error message "Activex cannot creat object".
How can I solve it? I use Office2007.

Regards,

Adam
 
A

Adam

Yes, I do. The code worked perfectly with 97/2003 version but
now I have got the problem I described below
(it does not work neither with outlook open nor with outlook closed)

Adam
 
R

Ron de Bruin

Try this first in Excel

Run Office Diagnostics.
Office Button>Excel Options...Resources
 
A

Adam

Wow, it works! I ran it and it fixed an installation problem.
The code works now, as it used to.
A big thanks!

Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top