I have a set of worksheets (for example, suppose they are called file01.xls, file02.xls, file03.xls, etc.), all with the same columns in the Sheet1 tab and with the other empty tabs. How do I merge these sheets into one without having to open, copy and paste one by one?
An example for better illustration. Suppose file01.xls contains:
| | A | B |
|----|--------|--------------|
| 1 | NOME | RG |
| 2 | João | 12.345.678-9 |
| 3 | José | 11.111.111-1 |
| 4 | Maria | 12.121.212-1 |
that file02.xls contains:
| | A | B |
|----|---------|---------------|
| 1 | NOME | RG |
| 2 | Luís | 55.555.555-5 |
| 3 | Carlos | 98.765.432-1 |
| 4 | Ana | 22.333.444-5 |
and that file03.xls contains:
| | A | B |
|----|---------|----------------|
| 1 | NOME | RG |
| 2 | Marcos | 12.321.234-3 |
| 3 | Edna | 98.765.678-9 |
| 4 | Ida | 99.888.777-6 |
What I want to get is a file_aggregado.xls that contains:
| | A | B |
|-----|---------|----------------|
| 1 | NOME | RG |
| 2 | João | 12.345.678-9 |
| 3 | José | 11.111.111-1 |
| 4 | Maria | 12.121.212-1 |
| 5 | Luís | 55.555.555-5 |
| 6 | Carlos | 98.765.432-1 |
| 7 | Ana | 22.333.444-5 |
| 8 | Marcos | 12.321.234-3 |
| 9 | Edna | 98.765.678-9 |
| 10 | Ida | 99.888.777-6 |