Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,616
- Office Version
- 365
- 2016
- Platform
- Windows
I am receiving a "Type mismatch" error with this line of code (in red), and I am looking for some guidance as to it's cause. The line is intended to return the line number holding the value (usd) in column B of worksheet ws_dest.
drow is defined as long.
usd is a variable holding a serial date
ws_dest is a legit worksheet
The values in column B are dates(?) formatted as ddd dd-mmm. When I click on a cell in column B, the formula bar displays 1/23/2018 (as an example), so assume it is also a date.
Rich (BB code):
With ws_dest
drow = Application.WorksheetFunction.index(usd, .Range("B:B"), 0)
End With
drow is defined as long.
usd is a variable holding a serial date
ws_dest is a legit worksheet
The values in column B are dates(?) formatted as ddd dd-mmm. When I click on a cell in column B, the formula bar displays 1/23/2018 (as an example), so assume it is also a date.
Last edited: