Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » Save attachment of first email only
Closed Thread
Old 04-07-2004, 07:28 AM   #1 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 2

griz

Exclamation Save attachment of first email only

Hi,

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.

Example:

Mail_A name_A
Mail_B name_B + attachment1
Mail_C name_C
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?

Thanks in advance for your help
griz is offline  
Old 04-07-2004, 07:51 AM   #2 (permalink)
 
Banned

Join Date: May 2003

Posts: 105

imported_Jack

Default

what would be the appliation of this functionality?
imported_Jack is offline  
Old 04-07-2004, 08:37 AM   #3 (permalink)
 
Newb Techie

Join Date: Apr 2004

Posts: 2

griz

Default

I don't think I have understood your question. What do you mean? My aim is to save the attachments one by one, not all at the same time. So I save the first attachment in the list and delete the mail item fron inbox. When I run the macro again it does the same thing for the first item in the list in inbox...
griz is offline  
 
Closed Thread

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On