I have 2 workbooks in which I'm trying to perform a search in both for the same string. One workbook contains fault names and their attributes (Workbook B.xlsx). The other workbook contains requirements with the fault names (Workbook A.xlsm). I've created a UserForm (in Workbook A.xlsm) for the user to insert the fault name to search for. One search will display the fault's color and code and the other search will display the requirement that the fault is in. I've having a problem with the actual search logic (Run-time error '91': Object variable or With block variable not set):
Cells.Find(what:=TextBox3, LookIn:=xlFormulas, lookat:=xlWhole, searchorder:=xlByRows, searchdirection:=xlNext, _
MatchCase:=False, searchformat:=False).Activate
I've attached the 1 workbook that I launch the Form from. I can't seem to upload more than one file so here's the data from the other workbook:
Fault Color Code
System Fail Red 1
Subsystem Fail Yellow 2
Thanks,
Kevin