Hi all
I can't get my VLookup function to work how I need it to.
I have two worksheets (BSCQC and TMQC) and they each have a table (Table1 and Table 2, respectively). When someone entered a Call ID into the Call ID textbox (named CallID1) on the form, I need it to check that call ID isn't already on one of my two tables. I've got the following code, at the moment:
I just keep getting an error: 424, Object required. Any ideas?
Thanks!
Rachel
I can't get my VLookup function to work how I need it to.
I have two worksheets (BSCQC and TMQC) and they each have a table (Table1 and Table 2, respectively). When someone entered a Call ID into the Call ID textbox (named CallID1) on the form, I need it to check that call ID isn't already on one of my two tables. I've got the following code, at the moment:
Code:
If Application.WorksheetFunction.VLookup(Me.CallID1, BSCQC.Range("Table1"), 3, FALSE) is Nothing Then
MsgBox "Call ID has already been used"
Me.CallID1.Value = ""
End If
If Appliction.WorksheetFunction.VLookup(Me.CallID1, TMQC.Range("Table2"), 3, FALSE) is Nothing Then
MsgBox "Call ID has already been used"
Me.CallID1.Value = ""
End If
I just keep getting an error: 424, Object required. Any ideas?
Thanks!
Rachel