A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Can Not Automate Outlook From Excel



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old January 22nd 08, 05:09 AM posted to microsoft.public.outlook.program_vba
Peter[_4_]
external usenet poster
 
Posts: 5
Default Can Not Automate Outlook From Excel

Outllook 2003 on XP Pro

I am trying to open Outlook and crate a message from Excel VBA module and I
am getting the following error

The Operation failed. - -2147287037: In RunExportProgram Function

(Every thing works fine if Outlook is already open, but not when it's
closed)
The same code works fine on other computers even when Outlook is closed.


Here's the code:

Dim OutlookApp As Object

Set OutlookApp = CreateObject("Outlook.Application")
Set Message = OutlookApp.Application.CreateItem(0) ' -- This is where
the error occurs



Thanks


Peter


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automate Outlook username and server Sam Stamp Outlook - Installation 2 December 13th 07 07:02 AM
automate Outlook..insert signiture SAm Outlook and VBA 1 July 25th 07 10:24 PM
Outlook to read emails and automate to do some work Chirag Chokshi Outlook and VBA 1 July 3rd 07 04:32 PM
Automate email and attach excel worksheet or workbook wilma2299 Outlook and VBA 3 April 13th 07 06:06 AM
Automate Outlook Profiles ... Newprof and PRF DemoDog Outlook - Installation 3 January 17th 06 02:06 PM


All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.