airforceone
Board Regular
- Joined
- Feb 14, 2022
- Messages
- 201
- Office Version
- 2019
- 2016
- Platform
- Windows
needed help again....
what I'm trying to do is, loop thru the range (until last row) and delete entire rows if cell is empty/blank or cell value not equal to "PAID"
below code does not seem to work
I already went on reading the following post to no avail...
what I'm trying to do is, loop thru the range (until last row) and delete entire rows if cell is empty/blank or cell value not equal to "PAID"
below code does not seem to work
VBA Code:
LROW = 2
Do While LROW <= LastRow
If (IsEmpty(Cells(LROW, 4)) = True Or Not Cells(LROW, 3).Value Like "PAID") Then
rows(LROW).Delete
End If
LROW = LROW + 1
Loop
I already went on reading the following post to no avail...
Delete entire column if row 5 is blank
Hi, I have a file where i'd like to delete entire column where row #5 is blank. I have below code where it deletes entire column if it is completely blank. I want to narrow it down and delete entire column if row 5 is blank in the range. Can anyone help me modify the code. My range is from...
www.mrexcel.com
Delete entire row that is blank in column by header name
I have a code that finds the header by name. I also have a code for deleting entire row(s) that have no value in a cell. What I am trying to do is find a column, by the header name, and delete all rows that have no value in this column. Here is the code I am using to find the column Dim...
www.mrexcel.com