code for opening, saving, workbook

arey

Board Regular
Joined
Feb 14, 2006
Messages
166
Morning all,

Does anyone have a simple code that will do the following...

1. From a workbook called open Exercises_Results_Template
2. Go to a certain directory C:\TEMP\FILES
3. Open a workbook called SI_DIR_MASTER
4. Give the user the ability to save as SI_DIR_MASTER to SI_DIR in the folder of their choice.
5. Give the user the ability to save as SI_DIR_MASTER to SI_DIR_ in the folder of their choice.
6. In SI_DIR copy a selection of data say A12:AF4000
7. Paste text in Exercises_Results_Template starting at A12
8. Give the user the ability save Exercises_Results_Template as Exercises_Results in the folder of their choice.

Here's the thing there are three workbooks that I have to "grab' data from - in the same fashion as above - and paste it into seperate worksheets in the Exercises_Results.
Correct me if Im wrong but i figure if i have the above code I can just copy that for the other 2 worksheets, minus the last save as - step 8. At the very end the user could do a simple save.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,214,585
Messages
6,120,397
Members
448,957
Latest member
Hat4Life

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