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

Automation Error



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 3rd 06, 09:23 PM posted to microsoft.public.outlook.program_vba
Lightknight
external usenet poster
 
Posts: 2
Default Automation Error

I am having issues with the standard VBA code to create mail items. I have a
piece of code that works on 95% of the company's 2003 servers. However,
there are some servers where I receive an Automation error message, The
handle is invalid. I have verified that the Outlook reference library is
correct and the same across servers that are working and not working. I have
unsuccessfully done web searches to try and find any other instances of this
error with the Outlook VBA code. Does anyone have any other thoughts on what
might be causing the error. I can post the specific automation error if
necessary but I have not found anything usefull in researching it.
Ads
  #2  
Old April 3rd 06, 10:31 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automation Error

Outlook VBA code running on servers? That's a sure recipe for problems. Outlook is not supported for any kind of unattended automation, much less running VBA code on a server that has Outlook installed on it.

I'm sure there's a better way to accomplish your goals.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Lightknight" wrote in message ...
I am having issues with the standard VBA code to create mail items. I have a
piece of code that works on 95% of the company's 2003 servers. However,
there are some servers where I receive an Automation error message, The
handle is invalid. I have verified that the Outlook reference library is
correct and the same across servers that are working and not working. I have
unsuccessfully done web searches to try and find any other instances of this
error with the Outlook VBA code. Does anyone have any other thoughts on what
might be causing the error. I can post the specific automation error if
necessary but I have not found anything usefull in researching it.

  #3  
Old April 4th 06, 03:40 PM posted to microsoft.public.outlook.program_vba
Lightknight
external usenet poster
 
Posts: 2
Default Automation Error

Let me clarify. I have VB code in an access database that is used to
generate emails. The environment is a citrix farm, with dozens of potential
citrix servers you can connect to and use the database. For almost all of
the potential citrix servers, the code runs fine, however some of them fail
with the automation error. The code err's on the code line
Set oOApp = CreateObject("Outlook.Application")

"Sue Mosher [MVP-Outlook]" wrote:

Outlook VBA code running on servers? That's a sure recipe for problems. Outlook is not supported for any kind of unattended automation, much less running VBA code on a server that has Outlook installed on it.

I'm sure there's a better way to accomplish your goals.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Lightknight" wrote in message ...
I am having issues with the standard VBA code to create mail items. I have a
piece of code that works on 95% of the company's 2003 servers. However,
there are some servers where I receive an Automation error message, The
handle is invalid. I have verified that the Outlook reference library is
correct and the same across servers that are working and not working. I have
unsuccessfully done web searches to try and find any other instances of this
error with the Outlook VBA code. Does anyone have any other thoughts on what
might be causing the error. I can post the specific automation error if
necessary but I have not found anything usefull in researching it.


  #4  
Old April 4th 06, 03:46 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Automation Error

The most obvious thing to check is whether those servers have a client antivirus program running that blocks Outlook "scripts" like that. If so, the solution is to turn off such script blocking.
--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Lightknight" wrote in message news
Let me clarify. I have VB code in an access database that is used to
generate emails. The environment is a citrix farm, with dozens of potential
citrix servers you can connect to and use the database. For almost all of
the potential citrix servers, the code runs fine, however some of them fail
with the automation error. The code err's on the code line
Set oOApp = CreateObject("Outlook.Application")

"Sue Mosher [MVP-Outlook]" wrote:

Outlook VBA code running on servers? That's a sure recipe for problems. Outlook is not supported for any kind of unattended automation, much less running VBA code on a server that has Outlook installed on it.

I'm sure there's a better way to accomplish your goals.

"Lightknight" wrote in message ...
I am having issues with the standard VBA code to create mail items. I have a
piece of code that works on 95% of the company's 2003 servers. However,
there are some servers where I receive an Automation error message, The
handle is invalid. I have verified that the Outlook reference library is
correct and the same across servers that are working and not working. I have
unsuccessfully done web searches to try and find any other instances of this
error with the Outlook VBA code. Does anyone have any other thoughts on what
might be causing the error. I can post the specific automation error if
necessary but I have not found anything usefull in researching it.


 




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
OE Socket Error: 11004, Error Number: 0x800CCC0D Mary Outlook Express 4 March 20th 06 03:44 AM
Automation of voting buttons [email protected] Outlook - Using Forms 0 February 2nd 06 02:09 PM
Outlook automation using vbs Marceepoo Outlook - Installation 1 January 17th 06 05:18 AM
DBX Files - Automation Dave Outlook Express 4 January 15th 06 06:35 PM
Help on Outlook automation Neo Outlook - General Queries 1 January 15th 06 05:49 PM


All times are GMT +1. The time now is 08:18 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.