austin350s10
Active Member
- Joined
- Jul 30, 2010
- Messages
- 321
I am using the following script to search through column B and find the variable testdate:
I keep getting errors though...
- column B contains of a list of data in date format
- the variable testdate is a string I think
Normally Match works fine for me but I think since I am trying to match dates it is giving me problems.
Is there a different/better way to do this? I just need to know the row or address of where the testdate matches with the date in column B.
Code:
lrow = Application.WorksheetFunction.Match(testdate, Range("B:B"), 0)
I keep getting errors though...
- column B contains of a list of data in date format
- the variable testdate is a string I think
Normally Match works fine for me but I think since I am trying to match dates it is giving me problems.
Is there a different/better way to do this? I just need to know the row or address of where the testdate matches with the date in column B.