Hi guys,
I don’t know much about VBA and wanted to see if by providing me an example with explanation as to what each code does whether I can learn the basics for my needs.
My goal is to combine data from multiple different Excel files into a single new file. Please see the attached files. This is what I am trying to achieve - copy the data from all individual Excel files contained in a given folder, let’s call it “C:\Combo” folder, Paste the values of that data into a single Excel files.
Example:
1. Look in file “Data File 1,” sheet “Full IO”
2. Copy A20 into cell G2 of “Summary File” sheet “Primary”
3. Copy C20:C49 into G3:G32 of “Summary File” sheet “Primary”
4. Copy M20:M49 into G3:G32 of “Summary File” sheet “Secondary”
5. Move over into the next column and copy the same information from the next Excel file (Data File 2) in the given folder and repeat the loop until all the files are copied
I know that there are a few example online, but the code is not properly explained and I can’t quickly figure out how it works. Seeing a working example like this should help me truly understand how the coding works.
I would appreciate your help with the example of the code. I am trying to change the way we manage data in our lab since almost no one is utilizing the power of VBA.
Thanks.
Bookmarks