Hi guys.
I have a sheet with data in columns A through to E.
In column E are the values of funds in accounts. Not all cells have values though, some have text or symbols and these are interspersed amongst the data.
I need my macro to delete all lines that do not equal zero.
I've tried using this code, but it doesn't delete anything. I'm guessing this is because of the cells which are not value cells
I've also tried this code, this deletes most of the 0 value rows, but for some reason, doesn't delete the bottom 2.![]()
Please Login or Register to view this content.
If I put that code in the macro twice more, then it delete the final 2 lines. So I know it isn't that values of the cells themselves causing this problem.![]()
Please Login or Register to view this content.
In a slight change to the code, I'm trying to use this code to delete rows where the data in column A reads GBP
However, it doesn't appear to delete anything.![]()
Please Login or Register to view this content.
Any ideas why I just can't get these pieces of code to work?
Bookmarks