BradleyS
Active Member
- Joined
- Oct 28, 2006
- Messages
- 333
- Office Version
- 2010
- Platform
- Windows
When I manually enter this formula (using DNRs):
IF(REASONTBL<>"<No Selection>",REASONTBL=K2,1) into a cell it works fine.
However, when I use VBA
Range("L2").Formula = "=IF(REASONTBL<>""<No Selection>"",REASONTBL=K2,1)"
it shows in the cell as: IF(@REASONTBL<>"<No Selection>",@REASONTBL=K2,1) and doesn't work due to the @ symbols that have appeared.
Why is it doing this and how can I resolve it?
IF(REASONTBL<>"<No Selection>",REASONTBL=K2,1) into a cell it works fine.
However, when I use VBA
Range("L2").Formula = "=IF(REASONTBL<>""<No Selection>"",REASONTBL=K2,1)"
it shows in the cell as: IF(@REASONTBL<>"<No Selection>",@REASONTBL=K2,1) and doesn't work due to the @ symbols that have appeared.
Why is it doing this and how can I resolve it?