R
Rahul
I am trying to create a few command lines to scan a
worksheet and if any of the cells that has a division
function in it has a 0 in the numerator or denominator,
then replace that cell with just a 0.. if not then perform
the division. How do I do that with If/Else statement?
This is what I have so far which is thoroughly wrong:
If (num = 0 Or denom = 0) Then ActiveCell.FormulaR1C1
= "0" Else perform division End If
Please help!
Thanks so much!
worksheet and if any of the cells that has a division
function in it has a 0 in the numerator or denominator,
then replace that cell with just a 0.. if not then perform
the division. How do I do that with If/Else statement?
This is what I have so far which is thoroughly wrong:
If (num = 0 Or denom = 0) Then ActiveCell.FormulaR1C1
= "0" Else perform division End If
Please help!
Thanks so much!