Macro to import cells from a work book into a new work book?

talking_goat

New Member
Joined
Nov 17, 2005
Messages
5
Ok, my boss (has anyone seen the movie Office Space???), wants me to create a macro (or some automation) so that we can click a button and draw data from different cells of an excel work book (the data source) and plug this data into a new work book. The cells in the data source work book are also in a variety of sheets within that work book.

Catch is, I'm no guru when it comes to spreadsheets. I'm sure that this is possible, I'm just having trouble doing it. Can anyone help me out with how to do this? Or point me into the right direction?

Any help is appreciated. Thanks
 

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.
Use the macro recorder (see Tools, Macro, Record Macro) and run through the steps you want.

Better still, just use formulas and update your links.
 
Upvote 0
I tried the macro recorder but kept getting an error. What I'd like to be able to do is run something so that the macro pickups the data in cells A1, A3, A10 in sheet one, A1, A3, A10 in sheet two etc. and then places this data in a completely new work book. Is that possible?
 
Upvote 0
tactps said:
Use the macro recorder (see Tools, Macro, Record Macro) and run through the steps you want.

Better still, just use formulas and update your links.

So where would I store the macro? in a template work book? I'm sorry I'm a little confused. I have used the macro recorder before and got it to work, but it's just not doing it for me this time.
 
Upvote 0
You can store the macro in the module or you can link it to a button. Do the tab name change? Are the same cells always referenced?
 
Upvote 0
98illini said:
You can store the macro in the module or you can link it to a button. Do the tab name change? Are the same cells always referenced?

The cells should always be the same reference. The tabs at the bottom, or sheet names change.
 
Upvote 0

Forum statistics

Threads
1,214,651
Messages
6,120,742
Members
448,989
Latest member
mariah3

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