SNA400
Board Regular
- Joined
- Nov 5, 2010
- Messages
- 52
Hi All,
I don't use VBA much in my current job, so i'm a bit rusty
I am trying to get this line to work
Range("AM2", "AM" & llastrow).FormulaR1C1 = "=IFERROR(IF(RC[-2]=""Y"",VLOOKUP(2,DOC_CODE,4),""""),""P"")"
Where the "Y" is a 4 digit entry - i.e. Y923 or Y926 etc, but have tried a wildcard * with no luck.
Whats the best way to do this? The codes are always 1 alpha 3 numeric.
Simon
I don't use VBA much in my current job, so i'm a bit rusty
I am trying to get this line to work
Range("AM2", "AM" & llastrow).FormulaR1C1 = "=IFERROR(IF(RC[-2]=""Y"",VLOOKUP(2,DOC_CODE,4),""""),""P"")"
Where the "Y" is a 4 digit entry - i.e. Y923 or Y926 etc, but have tried a wildcard * with no luck.
Whats the best way to do this? The codes are always 1 alpha 3 numeric.
Simon