Hello,
I am having issues with the following code:
fRange is not working, the first 2 loops work but not this one. I cannot get it to work.Please Login or Register to view this content.
Could someone help me with this please?
Hello,
I am having issues with the following code:
fRange is not working, the first 2 loops work but not this one. I cannot get it to work.Please Login or Register to view this content.
Could someone help me with this please?
Try changing the Ands to Ors.
Incidentally looping through ranges of cells can be extremely slow and inefficient. For this sort of thing it's much more efficient and elegant to use an Autofilter to show the cells you want to delete, and then use the
fRange.SpecialCells(xlCellTypeVisible).EntireRow.Delete
This only requires VBA to address the sheet once rather than jumping back and forth
Richard Buttrey
RIP - d. 06/10/2022
If any of the responses have helped then please consider rating them by clicking the small star icon below the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks