Hi All
I have a workbook with 3 sheets - Employees, Covid Tests, Anti-Body Tests
I've added some activex text boxes to the Employees sheet so that the end user can search/filter the list as they type
Sheet1 - This code works fine
But then I've tried to implement a similar thing on the 2 remaining sheets for test results, so that when the employees table is filtered to a single employee, their ID number is carried through to the test results sheets and these sheets will then also filter to only show results for that one personPlease Login or Register to view this content.
But I'm getting a run time error on the 2nd line when using this code on sheet3 and sheet4
vba.png
Run time 1004.png
I think the problem lies with what sheet is active.
If the code on sheet3 or sheet4 is triggered while sheet1 (Employees table) is active, it produces the run time error
But if I'm on sheet3 or sheet4 and trigger the code manually (by typing numbers in cell C3) the code executes no problem
Is there any way to get around this?
Many thanks in advance
Vicky
Bookmarks