且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在“查找”中找不到的项目VBA

更新时间:2023-11-16 22:39:40

我相信你需要重组只是一点点 b $ b

I believe you'll need to restructure it just a little bit. It is not the best practice to handle errors with On Error Resume Next, but you could try this:

On Error Resume Next
Cells.Find(What:=uSSO, After:=ActiveCell, LookIn:=xlFormulas, _
    LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
    MatchCase:=False, SearchFormat:=False).Select

If Err.Number <> 0 Then
 '''Do your error stuff'''
 GoTo errorLn
Else
    Err.Clear
End If

这是否适合您的情况?

来源 http:/ /www.mrexcel.com/forum/excel-questions/143988-check-if-value-exists-visual-basic-applications-array.html