0
Thanks

A few words of thanks would be greatly appreciated.

Excel - Concatenate multiple tables



Issue


I want to concatenate 4 tables having the same structure, but located in different directories. What will change is the number of row to be imported (per month) and the contents of columns. How can this be implemented in VBA?

Solution


Try this:
Sheets("sheet to be copied").Select 
'selection of the data field
Application.Goto Reference:="R2C1" 
Range("A2:A2").Select 
Range(Selection, Selection.End(xlToRight)).Select 'select to the left 
Range(Selection, Selection.End(xlDown)).Select ' select downward
Selection.Copy 'copy selection


Thanks to PHILOU10120 for this tip.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Published by . Latest update on by deri58.

This document, titled "Excel - Concatenate multiple tables," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).

0 Comments