Hi,
I have a table named 'table1' with 2 columns, 'Name' and 'sdate'
What do I need to change in the 2nd Evaluate formula to make it work?![]()
sub test_Evaluate() Dim rec1, rec2 as variant Dim myName as String Dim sDt as date ' This WORKS myName="John" rec1 = Sheet1.Evaluate("Match(""" & myName & """,table1[Name],0)") ' It DOES NOT WORK sDt="07-12-2011" rec2 = Sheet1.Evaluate("Match(""" & sDt & """,table1[sDate],0)") End Sub
Regards,
Elio Fernandes
Bookmarks