什么会导致这条线
If Cells(i, 3) = "" Or VBA.Left(Cells(i, 3), 5) = "BIGA-" Or VBA.Left(Cells(i, 3), 5) = "BRNG-" Or VBA.Left(Cells(i, 3), 5) = "ENER-" Or VBA.Left(Cells(i, 3), 5) = "EURE-" Or VBA.Left(Cells(i, 3), 5) = "STRE-" Then Rows(i).Delete
在下面的宏中找到并删除第一个单元格记录后返回运行时错误“13”类型不匹配?
Option Explicit
Sub deletedExceptions_row()
Dim i As Long
For i = Cells.SpecialCells(xlCellTypeLastCell).Row To 1 Step -1
If Cells(i, 3) = "" Or
VBA.Left(Cells(i, 3), 5) = "BIGA-" Or
VBA.Left(Cells(i, 3), 5) = "BRNG-" Or
VBA.Left(Cells(i, 3), 5) = "ENER-" Or
VBA.Left(Cells(i, 3), 5) = "EURE-" Or
VBA.Left(Cells(i, 3), 5) = "STRE-" Then
Rows(i).Delete
Next i
End Sub