save first attachment
Posted on 2004-04-04
How can I save an attachment of the first mail item that has an attachment in the Inbox folder in Outlook 2002 by using VBA?
If there are other mail with attachment I want to leave them. I only want to save the attachment of the first mail item in the list that has an attachment. I also have mail without attachment, which I want to leave it there.
Mail_B name_B + attachment1
Mail_D name_D + attachment2
So in this case I only want to save attachment 1 (of Mail_B) and delete Mail_B from the list, then close outlook.
How can I do this?