ok so im having some problems with my Workbook search. i have attached it to this thread as describing it would just be confusing. (I was having problems uploading so its Zipped)
ok so here is an example. I have had to replace all the names for data protection hence the strange names.
I need to search for "AName007"
this value currently populates the following cells:
Sheet2:A10 valid=No
Sheet2:A12 valid=No
Sheet3:A8 valid=No
Sheet4:A15 valid=Yes
the scrip should then lookup if this is "valid" by panning accross to the right, as you can see it is not valid for Sheet2:A10, Sheet2:A12, Sheet3:A8 however it is valid for Sheet4:A15. so in theory it should return the value "EEE003" in the consultant bok on sheet one.
this all works fine.
where i have a problem is if the it is valid on the same sheet as one that is not valid it will not find it. if you where to step through the first example you would see taht it never finds Sheet2:A12 but ill show you another example anyway:
we search for AName008
this value currently populates the following cells:
Sheet2:A11 valid=No
Sheet2:A36 valid=Yes
as Sheet2:A36 is valid it should return the value QQQ023 in the consultante box on sheet 1, however it does not, the script will not find the same value on the same sheet. And I cant figure out why.
anyway, this is the first VBA script i have written, so if you do change anything can you please explain why.