I need to apply this formula via VBA code, but I'm not having much luck. This is the formula: =IF(ISERROR(VLOOKUP(D7,SparesOriginsLookup,4,FALSE)),"HKN1",VLOOKUP(D7,SparesOriginsLookup,4,FALSE))
I'm fine with using D7, or RC[-1], but I can't get the quotes right when apply within the code. If the VLOOKUP works, apply the value. If not, set HKN1. Can someone help here?
I see examples online, but this is tough to recreate.
I'm fine with using D7, or RC[-1], but I can't get the quotes right when apply within the code. If the VLOOKUP works, apply the value. If not, set HKN1. Can someone help here?
I see examples online, but this is tough to recreate.