我收到以下代码的类型不匹配错误。为什么?
If (Range("C:C").Find(What:=last_received, After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False)) is Nothing Then
tic = 1
End If
此外,我创建了一个 Range 变量并将其设置为注意并使用以下代码,但仍然出现相同的错误:
If (Range("C:C").Find(What:=last_received, After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False)) = rr Then
tic = 1
End If