need Macro to delete entire rows that are blank in col B only but leave all other rows untouched.
can someone please help me with this?
thanks for sticking with me on this one. the last code gives me a runtime error 1004
thanks for sticking with me on this one. the last code gives me a runtime error 1004
Excel 2007 | |||
---|---|---|---|
B | |||
1 | Title B | ||
2 | address 1 | ||
3 | |||
4 | address 21 | ||
5 | |||
6 | address 33 | ||
7 | address 100 | ||
8 | |||
9 | address 200 | ||
10 | |||
Sheet1 |
Excel 2007 | |||
---|---|---|---|
B | |||
1 | Title B | ||
2 | address 1 | ||
3 | address 21 | ||
4 | address 33 | ||
5 | address 100 | ||
6 | address 200 | ||
7 | |||
8 | |||
9 | |||
10 | |||
Sheet1 |
Sub skyport_ME1011896()
' hiker95, 06/28/2017, ME1011896
On Error Resume Next
Range("B1", Range("B" & Rows.Count).End(xlUp)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
On Error GoTo 0
End Sub
regarding post #9 I am using sheet 1 and row 1 is the beginning and I changed the X factor to 1000
regarding post #10 this was the last code I tried and got the 1004 runtime error
Sub ClearThem()
Columns(2).SpecialCells(4).EntireRow.Delete
End Sub
Sub DeleteIt()
With Sheet1.[A1].CurrentRegion
.AutoFilter 2, ""
.Offset(1).EntireRow.Delete
.AutoFilter
End With
End Sub