我正在尝试编写一个宏来删除A列中所有具有“True”的行。
这是我到目前为止所拥有的:
Sub deleteBlankRows3()
Dim lastrow as Long
Dim x as Long
lastrow = 4650
For x=8 to x=lastrow
If (Range("A1").Offset(x,0) = True) Then
Range("A1").Offset(x,0).EntireRow.Delete
x = x + 1
End if
Next x
End Sub
我说不出有什么问题!