I have a very large excel spreadsheet about 200 MB in size with 12 columns and a million rows.
There are 5 different types of cells that can identified by looking for a specific string pattern in each.
I want each of these 5 buckets of cells to have different interior colors. Also the ranges for each cell type are not contiguous.
Here is what I have tried and it works but is painfully slow.
Dump the used range to a variant array, loop through the array, identify each cell bucket type and set interior color index once per each cell depending on type of bucket it belongs to.
Dump the used range to a variant array, loop through the array, identify each cell bucket type and create a new range using union, set interior color index only once per each type of range.
Both these approaches take about 90 minutes to color the cells.
Any other ways to optimize this?