Hello everyone,
this is a bit hard to describe.
I'm currently working on a module that does the following.
A worksheet has an identifier column. All rows that contain a certain identifier (say 12345) are copied into an array. Then a new file is created and the contents of the array are pasted into the file.
Filling the array works so far, I checked it by debugging and checking the contents of the array after filling. The array is arrData(x,y).
Now, when I paste the contents of the array into the new file, I do it like this:
I start with A2 because the first row is the column descriptions.
Also, I don't know why I actually have to transpose the array, but it is necessasary, otherwise rows and columns are switched on paste.
The array contains 56 rows. However, instead of pasting these 56 rows, only the 11 last rows are in the new file. And they don't start at row 2, but at row 1.
Currently I assume that it pastes a few rows, then jumps back to row 1, overwrites the rows it pasted, jumps back to the top and does it until only the last 11 rows are left.
Does anyone know what's going on?
Bookmarks