Sub v_delete()
Dim k As Integer
Application.ScreenUpdating = False
nn7 = Sheets("市庫").[e65536].End(xlUp).Row
For k = 2 To nn7
If Cells(k, 10) = "v" Then
Rows(k).Delete
End If
Next k
Application.ScreenUpdating = True
End Sub作者: 准提部林 時間: 2016-10-5 21:05
For k = 2 To nn7 刪除不可由上而下, 除非多一道加工,
最妥當用 For k = nn7 To 2 Step -1 由下而上刪除,