vba_monkey
Board Regular
- Joined
- Dec 18, 2013
- Messages
- 112
Hello,
Can anyone please tell me what is wrong with this line of code. The aim is to determine if the field called Search_TB on a UserForm is blank or if whatever value is in that field is not in column 1 of a worksheet called ManSheet.
I've tried lots of things but I'm constantly getting this error:
'Unable to get the VLookup property of the WorksheetFunction class'
Can anyone please tell me what is wrong with this line of code. The aim is to determine if the field called Search_TB on a UserForm is blank or if whatever value is in that field is not in column 1 of a worksheet called ManSheet.
Code:
If Search_TB = "" Or WorksheetFunction.VLookup(Search_TB, ManSheet.Columns(1), 1, False) = 0 Then
I've tried lots of things but I'm constantly getting this error:
'Unable to get the VLookup property of the WorksheetFunction class'