A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

AutoSave Zip File



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 17th 06, 08:10 AM posted to microsoft.public.outlook.program_vba
Telecommm
external usenet poster
 
Posts: 4
Default AutoSave Zip File

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
email
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  
Old January 18th 06, 08:52 AM posted to microsoft.public.outlook.program_vba
Michael Bauer
external usenet poster
 
Posts: 435
Default AutoSave Zip File

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
email
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  
Old January 19th 06, 09:50 AM posted to microsoft.public.outlook.program_vba
Telecommm
external usenet poster
 
Posts: 4
Default AutoSave Zip File

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
email
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
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 08:51 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.