How do I extract data from multiple workbooks using VBA

Harrish

New Member
Joined
Oct 29, 2009
Messages
9
Hello,

I am trying to create functions in VBA and I need to extract data from multiple workbooks. For example, is it possible to sum data(numbers) contained in multiple workbooks using VBA? If so, how do I create that function in VBA.

Any suggestions would be much appreciated,
 

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.
xzerox,

I would suggest that you start your own new post, and add the following link as a reference:
http://www.mrexcel.com/forum/newreply.php?do=newreply&noquote=1&p=2572253

I am not familiar with Exceo 2004 on a Mac.

Did you try the macro code?

You would have to change the:
MyDir = "C:\FLDR 1\"

And, what is the worksheet name?
With .Sheets(1)


And, you should supply screenshots of your summary workbook, and screenshots of the workbooks in the folder/directory.

Here are three possible ways to post small (copyable) screen shots directly in your post:

Please post a screenshot of your sheet(s), what you have and what you expect to achieve, with Excel Jeanie HTML 4 (contains graphic instructions).
http://www.excel-jeanie-html.de/html/hlp_schnell_en.php

or
RichardSchollar’s beta HTML Maker -...his signature block at the bottom of his post

or
Borders-Copy-Paste


Or, you can upload your workbook to www.box.net and provide us with a link to your workbook.
 
Upvote 0
btw
Did you try the macro code?

You would have to change the:
MyDir = "C:\FLDR 1\"

And, what is the worksheet name?
With .Sheets(1)

Yes, i try macro and it returns me 0. i think that is because of directory path where's files.
 
Upvote 0
ok, new post! :D sry for new THREAD.
I need extract data from multiple workbooks into other workbook cell. just like in this post on beginning BUT i need code to work in Excel 2004 on Mac.
Did you try the macro code?

You would have to change the:
MyDir = "C:\FLDR 1\"

And, what is the worksheet name?
With .Sheets(1)
I tried macro code and yes i need to change MyDir line. Worksheet name is in every workbook same Price. And everything is like in this first post. I think that's only problem in path.
Here is path screenshot:
http://img155.imageshack.us/img155/1903/picture1dz.png
 
Upvote 0

Forum statistics

Threads
1,216,434
Messages
6,130,609
Members
449,584
Latest member
c_clark

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