Sub test()
Dim RowNum As Long
Dim Rng As Range
Set Rng = Sheets("Sheet2").Range("A1:A500")
RowNum = Application.Match("A. Smith", Rng, 0)
MsgBox RowNum
End Sub
Sub test()
Dim RowNum As Long
Dim Rng As Range
Dim strFind As String
strFind = "A. Smith"
Set Rng = Sheets("Sheet2").Range("A1:A500")
RowNum = Application.Match(strFind, Rng, 0)
MsgBox RowNum
End Sub
Hi Domenic,
How come it worked when as Long was used or will it possibly run into an error at some point?