View Single Post
  #1  
Old March 21st 07, 04:16 PM posted to microsoft.public.outlook.program_vba
BZ
external usenet poster
 
Posts: 5
Default Adding property to attachment via macro

Hey there,

I have a utility (created by someone else in our company) that processes
certain messages. They speak another language and are in another TZ with 6
hours difference so communication is a little tough. :-) Their utility
expects the mail item to have a certain message class, and have an
attachment with a certain property on it (which is normally there but on all
but a few). I have written a simple macro to change the message class and
this works. Also I can add the property to the attachment using Outlook Spy,
and then the utility will work fine on the mail item.

Question: Can someone show (or point me to a link) example macro code for
setting a property on an attachment? Doubt it matters for the example, but
the property tag I need to add is 0x370E001E (PR_ATTACH_MIME_TAG).

Thanks!
BZ


Ads