outlook and excel

E

Excellaro

I use this code normally for creating emails from template oft, but now i
get a
run time error -2147024770 on creating object statement

Of course i add the relation sto outlook object library but....?


Dim myOlApp As Outlook.Application
Dim myItem As Outlook.MailItem

Set myOlApp = CreateObject("Outlook.Application")
Set myItem = myOlApp.CreateItemFromTemplate("C:\Prova.oft")
 

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