Niraj Baraili
Member
Hi All,
I am trying look up for a date in a range as below:
While running this code it's showing run time error 9. Even i tried to find out the date using excel find method for the date "2/4/2016" and same is not found.
Any input on this appreciated.
I am trying look up for a date in a range as below:
Code:
Sub Test()
Dim x As Date
x = Workbooks("Test.xlsm").Worksheets("sheet1").Range("D2")
Cells.Find(What:=x, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
End sub
Any input on this appreciated.