why does not work with an arraylist containing the months
possible this code snippet can get you started
Grtz,
Luc
www.scriptingit.be
Code:
Sub test()
Dim s As String
s = "21 Mar"
Dim l(12) As String
Dim d As Date
l(1) = "Jan"
l(2) = "Feb"
l(3) = "Mar"
Dim i As Integer
For i = 1 To 12
If InStr(0, l(i), s) > 0 Then
'MATCH
......................
End If
Next
End Sub