G
GregJG
currently I am using this code;
Set SourceWB = Workbooks("book1.xls")
With SourceWB.Sheets("sheet1")
Set rnrange = .Range("g11:g30")
Set rnrange = rnrange.SpecialCells(xlBlanks)
rnrange.EntireRow.Delete
End With
the error I am getting is
run time error '1004':
no cells were found
g11:g20 are filled, it should be deleting rows 21 thru 30?
Set SourceWB = Workbooks("book1.xls")
With SourceWB.Sheets("sheet1")
Set rnrange = .Range("g11:g30")
Set rnrange = rnrange.SpecialCells(xlBlanks)
rnrange.EntireRow.Delete
End With
the error I am getting is
run time error '1004':
no cells were found
g11:g20 are filled, it should be deleting rows 21 thru 30?