下面的子不起作用:
Sub RemoveAllBelowStr()
Dim SrchRng As Range, i As Integer
Set SrchRng = ActiveSheet.Range("A1:A700")
For i = 0 To SrchRng.rows.Count
If IsEmpty(Cells(i, "A")) Then Exit For 'THIS LINE IS THROWING RUN TIME ERROR
Next i
rows(i & ":" & rows.Count).Delete
End Sub
我收到“应用程序定义或对象定义”运行时错误 1004。
请指教。