- - Unable to match property error
(https://www.excelbanter.com/excel-discussion-misc-queries/160815-re-unable-match-property-error.html)
papou[_2_]
Unable to match property error
Hello Kenny
Try this:
If Target.Cells.Count = 1 And Target.Value < "" And Target.Column = 9 Then
On Error Resume Next
dummy = Application.WorksheetFunction.Match(Target.Value,
Worksheets("Codes").Range("B:B"), 0)
If Err < 0 Then
MsgBox "No matching value found"
Err.Clear
On Error GoTo 0
Else
Application.EnableEvents = False
Target.Value = dummy
Application.EnableEvents = True
End If