Macro to save workbooks from outlook

sign4this

New Member
Joined
Apr 26, 2008
Messages
19
Hello

I am sending an email with an attached workbook. Curently I have the recipient open the email and click a button I have placed on the worksheet that runs a macro that deletes the button from the worksheet and saves the workbook to a specific folder.

This is working fine. However, I have the need to send more than one workbook and want to know if I can do basically the same thing but have one macro open and save all the attached workbooks without having the recipient open each attachment seperately.

Here is the macro I am currently using. I know I am a novice at this so please be kind.

ActiveSheet.Shapes("saveto").Delete

Application.DisplayAlerts = False
Sheets("data").Select
ActiveWorkbook.SaveAs Filename:="p:\price data\locdata.xls"
ActiveWorkbook.Close

I am currently using office 2003

Thank you
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Forum statistics

Threads
1,224,518
Messages
6,179,248
Members
452,900
Latest member
LisaGo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top