Pulling specific data from multiple workbooks into one

Aggie2014

New Member
Joined
Dec 26, 2019
Messages
35
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I have been reading many of the posts on this board that have helped me immensely in learning VBA, however the macro that I’m working to create now hasn’t had a discussion that I’ve been able to find.

I have about 15 files with different financial data in a folder; each file has different amount of rows but they all have several Rows with category names and totals. For example “total revenues” and “Total capital outlay” that are located in column C with the totals following in Columns D-I.

what I’m looking for is a macro that will copy those rows with totals from each workbook into a new summary workbook.

complicating matters further, each file contains a unique name in cell A3 that I would like to show in the summary workbook to identify which file the totals came from.

apologies for the rambling but I wanted to describe the conundrum in the most detail possible. Thanks all!
 
Don't ask my why or how but the compile error went away even with the asterisks present, however I get a different error when I run the code that the macro couldn't find the path C:\Users\XXXX\AppData\Roaming\Microsoft\Excel\XLSTART\ and is asking if it was possible that it was moved, renamed , or deleted. I have the summary workbook and the data files all saved in the same folder on my desktop so I'm not sure why it's looking in another directory...
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Is the code in the "Master" workbook, or in your Personal.xlsb file?
 
Upvote 0
It was in the Personal.xlsb. Once I moved it to the summary, it worked great. Thanks all for the help!
 
Upvote 0
Thanks Fluff.
I should go shopping more often and come back to solved problems!
Happy New Year to you and yours for both.
 
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