View Single Post
  #2  
Old June 21st 06, 06:01 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default Counting Attachments in Messages

Am Tue, 20 Jun 2006 09:43:02 -0700 schrieb Chris Rhodes:

Using CDO 1.21 or Redemption (www.dimastr.com) you can look for the field
PR_CONTENT_ID. If it exists itīs an embedded attachment and probably one of
those you donīt want to count.

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


I have code that prompts the user for certain infomation before a message
sent. If there are attachments to the message, certain other infomation

is
necessary. I am attempting to use mailitem.attachments.count to do this,

but
i find that when i send a message, there is a count of one attachment

(some
of the time) in the file when i have included no attachments.

My first guess is that this is because my message is HMTL format and there
is some "invisible" attachment to the message, but i am curious if i am
missing something.

Any suggestions?

Using Outlook 2003 w/ Exchange Server

Ads