Solved

Copy cells from multiple Excel files into one file

Posted on 2014-09-24
5
206 Views
Last Modified: 2014-09-24
Hello,

I would like to run a macro that opens all Excel files in a certain folder, goes to a certain sheet, select some cells and copies this into the workbook that I started the macro from.
I would like to see the name of the source file in column A and then the copied cells in the columns next to it.
0
Comment
Question by:Arkawa72
  • 2
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40341352
Sounds like a project, what steps have you made so far?

EE is a forum for helping people out when they come across an issue, not somewhere to get a project completed for free. Some EE members do have Hire Me options enabled.

Thanks
Rob H
0
 

Author Comment

by:Arkawa72
ID: 40341411
Rob,

I would not call it free. This is the first question I ask in 2 years:

INVOICE #  DATE  ITEM  TOTAL  PAYMENT METHOD  REFUND ID  
7865685  2014-09-04  Premium Services - Monthly  $16.99 USD  Visa ending with 5570  
7823288  2014-08-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7781117  2014-07-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7738570  2014-06-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7693676  2014-05-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7647101  2014-04-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7596944  2014-03-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7547614  2014-02-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7494214  2014-01-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7439910  2013-12-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7383423  2013-11-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7326576  2013-10-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7272421  2013-09-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7217642  2013-08-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7161168  2013-07-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570  
7104952  2013-06-04  Premium Services - Monthly  $12.95 USD  Visa ending with 5570
0
 

Author Comment

by:Arkawa72
ID: 40341417
But I guess you are right. I looked on some real free websites and I found the solution there.
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 40341445
Apologies, I believe you may have misunderstood my comment. When saying "For Free", I meant without payment to the person doing the work.

Most contributing Experts on EE are volunteers willing to share their knowledge, all we receive from EE is kudos and points; we can convert said points into prizes but don't get paid for our work. As mentioned some do have the Hire Me option enabled for larger projects with payment terms arranged outside of the EE Forum.

Regards
Rob H
0
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40341609
Hi,

please find attached zip folder. contains the master file which has the macro in it. and also the supplementary three files A, B and C are for testing.

open the workbook called COMBINE WORKBOOKS then run the macro named "IAMYOURMACRO"
then a dialog box opens asking you to select the workbooks those which you want to copy its data to the master file.
once you select them the macro then copies all used ranges of those workbooks into the master sheet of the workbook from which you run the macro.

the code is a curtesy of Ron de Bruin, but i twisted the code to serve your purpose of need.
COMBINE-WORKBOOKS.xlsm
A.xlsx
B.xlsx
C.xlsx
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now