Hi. I have a spreadsheet with 60,000 records.
I want to delete a row if it contains a specific value.
I can successfully do it, by looping through each row, 1 by 1, looking for the value and the deleting the row.
It takes a really long time to do it (even with screenupdating off).
Any help would be appreciated to make this more effecient:
for i = 1 to 60000
if activecell.value = "string" then
selecttion.entirerow.delete
else
activecelloffset(1,0).select
endif
I want to delete a row if it contains a specific value.
I can successfully do it, by looping through each row, 1 by 1, looking for the value and the deleting the row.
It takes a really long time to do it (even with screenupdating off).
Any help would be appreciated to make this more effecient:
for i = 1 to 60000
if activecell.value = "string" then
selecttion.entirerow.delete
else
activecelloffset(1,0).select
endif