![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
Thanks for your help. Since I am a novice so having a bit problem in running this code. Its generating error in second line. Please have a look and advice. Sub AutoSave_RTDs_From_Mansoor() Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt As Outlook.Attachment For Each oAtt In oMail.Attachments oAtt.SaveAsFile "d:\TestFolder" & oAtt.FileName Next End Sub Thanks again. "Michael Bauer" wrote: Am Mon, 19 Dec 2005 03:58:02 -0800 schrieb Telecommm: ThereĀ“s no rule for saving attachments. But in Outlook = XP you can use a rule that runs a script if a new mail arrives with the specific subject. Sample for such a script: Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt as Outlook.Attachment For each oAtt in oMail.Attachments oAtt.SaveAsFile "d:\path\" & oAtt.FileName Next End Sub -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi Experts, I daily receive an email with a specific word "IUN" in subject field. This contains a zip attachment. I want to save this attachment automatically in a folder in D Drive. Please tell me how can i do that. Do i need some macro or i can use the Rules of MS Outlook. Thanks for the support. Regards Telecommm |
Ads |
#2
|
|||
|
|||
![]()
Am Mon, 16 Jan 2006 23:10:02 -0800 schrieb Telecommm:
There must be only one method declaration, that is the first *or* the second line only. The sample expects that you call the method with a reference on the e-mail in question. So if you decide to use the first line then please copy the argument (i.e.: oMail as Outlook.MailItem) into the first line before deleting the second one. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi, Thanks for your help. Since I am a novice so having a bit problem in running this code. Its generating error in second line. Please have a look and advice. Sub AutoSave_RTDs_From_Mansoor() Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt As Outlook.Attachment For Each oAtt In oMail.Attachments oAtt.SaveAsFile "d:\TestFolder" & oAtt.FileName Next End Sub Thanks again. "Michael Bauer" wrote: Am Mon, 19 Dec 2005 03:58:02 -0800 schrieb Telecommm: There“s no rule for saving attachments. But in Outlook = XP you can use a rule that runs a script if a new mail arrives with the specific subject. Sample for such a script: Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt as Outlook.Attachment For each oAtt in oMail.Attachments oAtt.SaveAsFile "d:\path\" & oAtt.FileName Next End Sub -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi Experts, I daily receive an email with a specific word "IUN" in subject field. This contains a zip attachment. I want to save this attachment automatically in a folder in D Drive. Please tell me how can i do that. Do i need some macro or i can use the Rules of MS Outlook. Thanks for the support. Regards Telecommm |
#3
|
|||
|
|||
![]()
Thank you Sir,
that clears the issue. Thanks again. "Michael Bauer" wrote: Am Mon, 16 Jan 2006 23:10:02 -0800 schrieb Telecommm: There must be only one method declaration, that is the first *or* the second line only. The sample expects that you call the method with a reference on the e-mail in question. So if you decide to use the first line then please copy the argument (i.e.: oMail as Outlook.MailItem) into the first line before deleting the second one. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi, Thanks for your help. Since I am a novice so having a bit problem in running this code. Its generating error in second line. Please have a look and advice. Sub AutoSave_RTDs_From_Mansoor() Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt As Outlook.Attachment For Each oAtt In oMail.Attachments oAtt.SaveAsFile "d:\TestFolder" & oAtt.FileName Next End Sub Thanks again. "Michael Bauer" wrote: Am Mon, 19 Dec 2005 03:58:02 -0800 schrieb Telecommm: ThereĀ“s no rule for saving attachments. But in Outlook = XP you can use a rule that runs a script if a new mail arrives with the specific subject. Sample for such a script: Public SaveAttachments(oMail as Outlook.MailItem) Dim oAtt as Outlook.Attachment For each oAtt in oMail.Attachments oAtt.SaveAsFile "d:\path\" & oAtt.FileName Next End Sub -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook Hi Experts, I daily receive an email with a specific word "IUN" in subject field. This contains a zip attachment. I want to save this attachment automatically in a folder in D Drive. Please tell me how can i do that. Do i need some macro or i can use the Rules of MS Outlook. Thanks for the support. Regards Telecommm |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
excel file type missing from import a file window in outlook | xanadufl | Outlook - Using Contacts | 9 | February 28th 06 10:55 AM |
Cannot browse zip files when attaching to email | Gordon | Outlook - Installation | 1 | February 24th 06 10:14 PM |
autosave the email address when replying? | Randy | Outlook - Using Contacts | 0 | January 19th 06 02:09 AM |
zip code | tn10 | Outlook - Using Contacts | 0 | January 13th 06 05:22 PM |
zip code | tn10 | Outlook - Using Contacts | 0 | January 13th 06 05:21 PM |