Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Outlook and VBA (http://www.outlookbanter.com/outlook-vba/)
-   -   Reading attachments fails if receipt is requested... (http://www.outlookbanter.com/outlook-vba/34188-reading-attachments-fails-if-receipt.html)

Ake November 29th 06 06:06 PM

Reading attachments fails if receipt is requested...
 
Hi,

I do the following (from an Excel macro, if that is important)
If SubFolder.Items.Count 0 Then
For Each Item In SubFolder.Items
For Each Atmt In Item.Attachments
...saving file or whatever...

However, my macro quits, as if finished, as soon as it hits a mail that has
requested a receipt.

What is the best way to get around it? I would like to get them all in one go.

Kind regards / Ake

Michael Bauer [MVP - Outlook] December 4th 06 06:06 AM

Reading attachments fails if receipt is requested...
 


You could set the e-mail's ReadReceiptRequested property to False, call Save
and reset the property later. That changes the LastModifiedTime property of
course.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --

Am Wed, 29 Nov 2006 10:06:02 -0800 schrieb Ake:

Hi,

I do the following (from an Excel macro, if that is important)
If SubFolder.Items.Count 0 Then
For Each Item In SubFolder.Items
For Each Atmt In Item.Attachments
...saving file or whatever...

However, my macro quits, as if finished, as soon as it hits a mail that

has
requested a receipt.

What is the best way to get around it? I would like to get them all in one

go.

Kind regards / Ake



All times are GMT +1. The time now is 05:13 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com