I have two sheets. I pick up a date from sheet 1 and want to match the month of this date with month present in range of dates in another sheet 2, placed in Row 1. I want to match the month and pick the column no. I am using this command, but I get error 13, Type Mismatch.
I am using:
lcol = Application.WorksheetFunction.Match(Month(Cells(i, 2).Value), Month(Rows(1)), 0)
Please guide
I am using:
lcol = Application.WorksheetFunction.Match(Month(Cells(i, 2).Value), Month(Rows(1)), 0)
Please guide