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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,215,509
Messages
6,125,215
Members
449,215
Latest member
texmansru47

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