I have a problem with the section of code below.
I am trying to put EHP in column F if customer begins with GB or PL or E.
If I only have if customer begins with GB or PL macro works, if I add additional criteria if customer begins with E it fails.
Can someone please advise what mistake I have made, or is there another way to achieve putting EHP in column F if customer in column A starts with GB or PL or E.
There is code for the other customer ABC which works fine.
Thanks inadvance
Coop123
I am trying to put EHP in column F if customer begins with GB or PL or E.
If I only have if customer begins with GB or PL macro works, if I add additional criteria if customer begins with E it fails.
Range("F444").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(ISNUMBER(SEARCH(""GB"",RC[-5])),ISNUMBER(SEARCH(""PL"",RC[-5]))),ISNUMBER(SEARCH(""E"",RC[-5])))),""EHP"","""")"
Can someone please advise what mistake I have made, or is there another way to achieve putting EHP in column F if customer in column A starts with GB or PL or E.
There is code for the other customer ABC which works fine.
Thanks inadvance
Coop123