bloodybrit90
Board Regular
- Joined
- Jul 18, 2011
- Messages
- 111
I want to delete an entire row if there is info in column A and column C is blank.
Sub deleteBlank()
Dim Lastrow As Integer
Lastrow = Range("A" & Rows.Count).End(xlUp).Row
Range("C2:C" & Lastrow).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
When I ran this, it said "no cells were found." I am new to VBA any help would be greatly appreciated.
Thanks,
Chris
Sub deleteBlank()
Dim Lastrow As Integer
Lastrow = Range("A" & Rows.Count).End(xlUp).Row
Range("C2:C" & Lastrow).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
End Sub
When I ran this, it said "no cells were found." I am new to VBA any help would be greatly appreciated.
Thanks,
Chris