extracting selected data from a closed workbook into an open workbook automatically when opening

bharath235

New Member
Joined
Sep 24, 2017
Messages
24
Hi Friends,

Is it possible to extract a particular range of cells, for example c1:c20 from a closed excel workbook (example - sheet1.xlsx) into an open workbook (example - sheet2.xlsx), when opening the workbook (sheet2.xlsx), probably using something like Private Sub Workbook_Open(), so it happens when the workbook (sheet2.xlsx) is manually opened?

Thanks for your help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Why not just put a formula in WB1 linking to WB2 ?
 
Upvote 0
the scenario is that when sheet 2 opens, it should automatically pull a specific set of data into it from sheet 1, irrespective of whether sheet 1 is open or not. Please note that sheets 1 and 2 are two separate excel workbooks .. could anyone please help with a solution?
 
Upvote 0
Is there a reason why you can't use formulas in Sheet1 to get the data from Sheet2 ?
 
Upvote 0
It is not between two sheets.. It is between two workbooks or separate files .. and the extraction should happen automatically even if the other workbook is closed .. I reckon this can be accomplished using vba, but need help and ideas
 
Upvote 0
It is not between two sheets.. It is between two workbooks or separate files .. and the extraction should happen automatically even if the other workbook is closed .. I reckon this can be accomplished using vba, but need help and ideas

I know it is between two workbooks. VBA should not be required.
Why don't you try it ?
 
Last edited:
Upvote 0
Open both workbooks.
In WB1 select a cell to receive the data and type =
Select WB2 and select the cell containing the data to be put in WB1
Press Enter
 
Upvote 0
Dear sir, I don't think that's a solution .. how do you suppose it'll work for a closed workbook?

Try it !!!
I give up on this thread. If you need further help, someone else will no doubt supply it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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