throtmorton
Board Regular
- Joined
- Aug 9, 2005
- Messages
- 94
- Office Version
- 365
- Platform
- Windows
Howdy,
I can't get this formula reset to work. It works fine as a function, and I've tested to make sure the range is correct.
Can anyone tell me what I'm doing wrong?
Thanks!
Paul
Sub TestReset()
Range("TestRange").Formula = "=IF(OR(E$37=0,E$37=""),E267*E333,IF(OR(AND(E$37=90,$BM199<4),AND(E$37=60,$BM199<3),AND(E$37=30,$BM199<2)),0,IF(E$37=30,E266*E332,IF(E$37=60,E265*E331,E264*E330))))"
End Sub
I can't get this formula reset to work. It works fine as a function, and I've tested to make sure the range is correct.
Can anyone tell me what I'm doing wrong?
Thanks!
Paul
Sub TestReset()
Range("TestRange").Formula = "=IF(OR(E$37=0,E$37=""),E267*E333,IF(OR(AND(E$37=90,$BM199<4),AND(E$37=60,$BM199<3),AND(E$37=30,$BM199<2)),0,IF(E$37=30,E266*E332,IF(E$37=60,E265*E331,E264*E330))))"
End Sub