Copying values from known worksheet, but unknown workbook, and pasting to current workbook/sheet

hockdrew

New Member
Joined
Apr 15, 2016
Messages
1
Basically I have an overview document that compares several different sets of scenarios. Let's call this Overview.xlsm. I have many many scenario results with various names. Each of these scenario workbooks is formatted the exact same and was populated from a standard template. Let's just say they all have sheet1, sheet2 and sheet3. My Overview.xlsm file can compare up to 5 scenarios, and there for there are 5 versions of each comparable sheet (sheet1_scenario1, sheet1_scenario2, ..., sheet3_scenario5.) making 15 different sheets total. What I am trying to do is create 5 different buttons, each assigned to scenarios, to import the data from the selected scenario results workbook. So the first button would be called "import scenario1 results" I would then select the desired file, or fill/type the file name into a cell (which ever is easier), and the macro will auto populate that files sheets into the appropriate overview.xlsm scenario sheets. The copy/paste range will always be the same based on the sheet number.

Hopefully this wasn't too confusing. Any advice?

THANK YOU!!!!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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