Desu Nota from Columbus
Well-known Member
- Joined
- Mar 17, 2011
- Messages
- 556
I wrote this macro:
In column L, starting at row 16 I have this formula
Which returns a true or false.
I would like the macro to delete range(A-L) for any row that this above formula returns false.
For some reason this did not happen with the above macro and I am not sure why.
I expect that once the macro is run, all the results will have a True in column L (which did not happen)
Code:
Sub FAKE()
Dim i As Integer
Application.ScreenUpdating = False
With Sheets("SDIC")
For i = 16 To 350
If Range("L" & i).Value = False Then
Range("A" & i & ":" & "L" & i).Delete (xlUp)
End If
Next i
End With
Application.ScreenUpdating = True
End Sub
Code:
=SUMPRODUCT(--($S$16:$S$253=C16),--($T$16:$T$253=D16))>0
I would like the macro to delete range(A-L) for any row that this above formula returns false.
For some reason this did not happen with the above macro and I am not sure why.
I expect that once the macro is run, all the results will have a True in column L (which did not happen)