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 - General Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Problem automating outlook



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 11th 08, 05:45 PM posted to microsoft.public.access,microsoft.public.outlook
John
external usenet poster
 
Posts: 135
Default Problem automating outlook

Hi

We have a piece of code that sends emails with attachments (office
newsletter etc.) to our staff via outlook automation. This code has been
running fine for years and this problem has only recently come up. The
problem is that the mail shot starts and emails begin to be sent to the
staff (one per staff) but after around 100 emails have ended up in Outlook
Sent Items, the code in Access stops on the code line

objOutlookMsg.Attachments.Add "F:\Folder 1\8 Mailshots\2008\Feb 08 (2).doc"

with the below error;

Automation error (Error 440)

err.Number: -36683771

err.Description: Can't create file: Feb 08 (2).doc. Right-click the folder
you want to create the file in, and then click Properties on the shortcut
menu to check your permissions for the folder.

err.Source: Microsoft Office Outlook

If I click on Debug and then click on Play button to continue then another
20-50 emails are sent before this comes up and this process goes on. The
outlook version is 2003 and Exchange is 2003. Any help in resolving this
problem would be appreciated.

Thanks

Regards



Ads
  #2  
Old February 11th 08, 07:00 PM posted to microsoft.public.access,microsoft.public.outlook
John Blessing[_2_]
external usenet poster
 
Posts: 59
Default Problem automating outlook

There are specific newsgroups which deal with Outlok automation.

I suspect two things:

1. Poor support for filenames that don't fit the old-style dos naming 8.3
formats. There is an awful lot of legacy code in Windows.

2. The outlook security guard, which is precisely designed to prevent other
programs automating Outlook. Not sure what you are doing to work around it.



--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters
http://www.repeatmail.com - Send individual emails, scheduled or one-off,
plain or html

"John" wrote in message
...
Hi

We have a piece of code that sends emails with attachments (office
newsletter etc.) to our staff via outlook automation. This code has been
running fine for years and this problem has only recently come up. The
problem is that the mail shot starts and emails begin to be sent to the
staff (one per staff) but after around 100 emails have ended up in Outlook
Sent Items, the code in Access stops on the code line

objOutlookMsg.Attachments.Add "F:\Folder 1\8 Mailshots\2008\Feb 08
(2).doc"

with the below error;

Automation error (Error 440)

err.Number: -36683771

err.Description: Can't create file: Feb 08 (2).doc. Right-click the folder
you want to create the file in, and then click Properties on the shortcut
menu to check your permissions for the folder.

err.Source: Microsoft Office Outlook

If I click on Debug and then click on Play button to continue then another
20-50 emails are sent before this comes up and this process goes on. The
outlook version is 2003 and Exchange is 2003. Any help in resolving this
problem would be appreciated.

Thanks

Regards





 




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
Automating Outlook 2003 Andrew Kennard Outlook and VBA 4 February 12th 07 05:29 PM
Automating Outlook Andrew Kennard Outlook and VBA 1 December 20th 06 03:27 PM
Automating Outlook Reminders Darren Hermes Outlook and VBA 1 August 23rd 06 01:39 PM
Problem automating outlook John Outlook - General Queries 6 March 27th 06 02:51 PM
Problem automating outlook John Outlook and VBA 6 March 27th 06 02:51 PM


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