exceluser90
New Member
- Joined
- Jun 1, 2011
- Messages
- 15
I'm trying to find the row which a particular date is in on another sheet
I get a type mismatch error, but I'm not sure why. Any thoughts? The column that the range refers to is all formatted as dates as well.
Code:
Dim f, i, dnum As Integer
Dim hst, hfin, fst, ffin As Date
hst = ActiveSheet.Cells(3, 4).Value
dnum = Application.Match(hst, Sheets(pow).Range("A1").EntireColumn)
I get a type mismatch error, but I'm not sure why. Any thoughts? The column that the range refers to is all formatted as dates as well.