Dear all!
I am trying to delete all rows in my sheet where Column H and F are blank.
I know how to do it with one criteria but when I add the second one it stops working. Any suggestions?![]()
Please Login or Register to view this content.
Regards
Dear all!
I am trying to delete all rows in my sheet where Column H and F are blank.
I know how to do it with one criteria but when I add the second one it stops working. Any suggestions?![]()
Please Login or Register to view this content.
Regards
Last edited by Nils88; 08-13-2013 at 11:23 PM.
![]()
Please Login or Register to view this content.
Actually, I just tried having both in one line and no errors.
So your error might have something to do with the criterias you are using.
For example, if you first select all blanks then try to select all formulas, you will get an error because there are no formula cells left
Hi, Nope it does not workGot the error message
"Cannot use that command on overlapping sections"
Btw as you probably notice I am quite new to VBA![]()
Please Login or Register to view this content.
Thanks
On which line of code are you getting the error?
The yellow one
![]()
Please Login or Register to view this content.
It must be because the range that you are left with are 2 ranges that overlap in a specific way.
Break it down into 2 deletes:
![]()
Please Login or Register to view this content.
Hmm but now rows where for example only column H is blank and not column F will be deleted? no?
Yes but I think if your original code worked, it would have done the same thing.
If you have to put 2 criterias at the same time, you would have to use some kind of AutoFilter
Ok but thanks a lot for your help!
Maybe someone knows how to do that?
Cheers
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks