Run time error '1004' Unable to get the Match propertyof the WorksheetFunction class

前端 未结 6 1367
悲&欢浪女
悲&欢浪女 2021-01-17 01:29

In my macro, I have the following code :

i = Application.WorksheetFunction.Match(str_accrual, Range(Selection, Selection.End(xlToRight)), 0)
6条回答
  •  深忆病人
    2021-01-17 01:58

    I used "If Not IsError" and the error kept showing. To prevent the error, add the following line as well:

    On Local Error Resume Next

提交回复
热议问题