Article ID: 141507
Article Last Modified on 10/11/2006
Sub MatchDate()
Dim TheDate As Date
Dim Index As Variant
TheDate = #1/3/95#
' Find a match for the serial value of the date in the range A1:A10
' on Sheet1.
Index = Application.Match(CLng(TheDate), Range("Sheet1!A1:A10"), 0)
' Display the results.
If IsError(Index) Then
MsgBox "Not Found"
Else
MsgBox "Match item: " & Index
End If
End Sub
Additional query words: XL98 XL97 XL7 XL5 8.00 5.00a 5.00c index match XL
Keywords: kbdtacode kbhowto kbprogramming KB141507