Hello Clayton,
The array called Data holds the column letter for the destination cell. This array makes it easier to map the destination cells to the source cells. There are currently eleven columns used. The array is zero based. The first element is 0, the second element is 1, etc. The statement below copies the contents of the source cell "A1" to the column "G" of next available row, N, on the destination sheet. For this example, N will be 3.
The column argument of the Cells property will accept either a number or letter(s). Numbers are faster in a loop, but letters are more easily understood by people.
Bookmarks