automatic script

G

Guest

Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a specific location
automatically.
anyone know how to do this?
please advise
 
R

Roady [MVP]

You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup you
would be able to select the macro.
 
G

Guest

this helps a lot. now i don't see it in the "scripts" dropdown. i created
it in the macro and i stepped through the code. it worked very well. now,
how do i resolve this?

Roady said:
You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup you
would be able to select the macro.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
R C said:
Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a specific
location
automatically.
anyone know how to do this?
please advise
 
R

Roady [MVP]

Create a rule and and then set the action to run a script. With the code
modifications you can now select this script so it can run fully automated
based on the conditions you set in the rule.

That's what you wanted to achieve, right?

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
R C said:
this helps a lot. now i don't see it in the "scripts" dropdown. i
created
it in the macro and i stepped through the code. it worked very well.
now,
how do i resolve this?

Roady said:
You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup you
would be able to select the macro.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
R C said:
Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a specific
location
automatically.
anyone know how to do this?
please advise
 
G

Guest

i did these steps. when i click on 'script' to select the script and i get
the box listing of scripts, it's not listed. The box is blank so i can't
select any script.
help please

Roady said:
Create a rule and and then set the action to run a script. With the code
modifications you can now select this script so it can run fully automated
based on the conditions you set in the rule.

That's what you wanted to achieve, right?

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
R C said:
this helps a lot. now i don't see it in the "scripts" dropdown. i
created
it in the macro and i stepped through the code. it worked very well.
now,
how do i resolve this?

Roady said:
You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup you
would be able to select the macro.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a specific
location
automatically.
anyone know how to do this?
please advise
 
G

Guest

hi,
i figured it out from another posting. i added a mailitem parameter to the
procedure and it showed up in the script box.
thanks


R C said:
i did these steps. when i click on 'script' to select the script and i get
the box listing of scripts, it's not listed. The box is blank so i can't
select any script.
help please

Roady said:
Create a rule and and then set the action to run a script. With the code
modifications you can now select this script so it can run fully automated
based on the conditions you set in the rule.

That's what you wanted to achieve, right?

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
R C said:
this helps a lot. now i don't see it in the "scripts" dropdown. i
created
it in the macro and i stepped through the code. it worked very well.
now,
how do i resolve this?

:

You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup you
would be able to select the macro.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a specific
location
automatically.
anyone know how to do this?
please advise
 
R

Roady [MVP]

Yes, I posted that in my instructions as well.

Sub SaveAttachment (Item As Outlook.MailItem)

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003


-----
R C said:
hi,
i figured it out from another posting. i added a mailitem parameter to
the
procedure and it showed up in the script box.
thanks


R C said:
i did these steps. when i click on 'script' to select the script and i
get
the box listing of scripts, it's not listed. The box is blank so i can't
select any script.
help please

Roady said:
Create a rule and and then set the action to run a script. With the
code
modifications you can now select this script so it can run fully
automated
based on the conditions you set in the rule.

That's what you wanted to achieve, right?

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
this helps a lot. now i don't see it in the "scripts" dropdown. i
created
it in the macro and i stepped through the code. it worked very well.
now,
how do i resolve this?

:

You can do this with tweaking the code posted at;
http://www.howto-outlook.com/howto/saveembeddedpictures.htm

Changing the following line;
Sub SaveAttachment (Item As Outlook.MailItem)

And replace the selection check with;
Set MySelectedItem = Item

You can specify a folder path in the variable FolderPath

You can then create a rule and choose to run a script. In the popup
you
would be able to select the macro.

--
Robert Sparnaaij [MVP-Outlook]
Coauthor, Configuring Microsoft Outlook 2003
http://www.howto-outlook.com/
Outlook FAQ, HowTo, Downloads, Add-Ins and more

-----
Hi,
i want to create a script that does the following;
i receive an email daily with an attachment.
i want to save this attachment as a specific filename in a
specific
location
automatically.
anyone know how to do this?
please advise
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top