Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I'm trying to use this code (red line) to determine what row the current date can be found in column B of the worksheet.
I am receiving an error with the line in red : "Unable to get the Match property of the WorksheetFunction class"
Date, when I hover over it is 3/11/2019.
In worksheet "ws_wstoview", column B, row 41, the value 3/11/2019 exists (as seen in the formula bar ... but formatted in the cell as "Mon 11-Mar")
Why is my code unable to find the answer to the forumla?
Rich (BB code):
With ws_wstoview
If .Visible = xlSheetVisible Then
.Visible = xlSheetHidden
Worksheets("FRONT").Activate
Else
.Visible = xlSheetVisible
.Activate
lrow = Application.WorksheetFunction.Match(Date, .Range("B:B"), 0)
.Cells(lrow, 1).Activate
End If
End With
I am receiving an error with the line in red : "Unable to get the Match property of the WorksheetFunction class"
Date, when I hover over it is 3/11/2019.
In worksheet "ws_wstoview", column B, row 41, the value 3/11/2019 exists (as seen in the formula bar ... but formatted in the cell as "Mon 11-Mar")
Why is my code unable to find the answer to the forumla?