billandrew
Well-known Member
- Joined
- Mar 9, 2014
- Messages
- 743
Can I place specific value into an array and then use the array with a loop to delete row if value in array is in cell.
i.e. Place West, North, South in Array then use the following code.
i.e. Place West, North, South in Array then use the following code.
Code:
dim arr as Variant
For i = lastRow To 2 Step -1 If Ws.Cells(i, "H").Value = arr Then
Ws.Cells(i, "H").EntireRow.Delete
End If
Next