Hi All,
I have a large table (8000 rows) - I need to identify certain rows based on a criteria, and copy parts of the identified row (e.g. not all cells in the identified row) to a different table on another worksheet.
By iterating through each row in the table, I essentially have a solution that works - but it is terribly slow. I would like to instead create a solution that relies on AutoFilter to do the bulk of the work to identify which rows to copy - which will normally number somewhere in the 10-20 rows of the original 8000.
The attached workbook shows the example. I need to copy the data from RawData (tblRaw) tab to FilterData (tblFilter) tab. You can assume that the AutoFilter is already set up (in this case Head3 set to 'Female'). I need to copy the visible rows minus the Head2 and Head4 cols from the resulting table to the new table. In the actual spreadsheet I am using (not the example here), I will also need to manipulate some of the data before copying.
Note also, my method for creating the new table is to use VBA to delete each individual row in any existing tblFilter, and then add new rows as needed as I move the data from tblRaw. If there is a better way (e.g. faster than walking through the old table and deleting each row), I'd be interesting in understanding that solution also. Thanks
TableCopy.xlsx
Bookmarks