I wrote a macro in 97 to copy a simple formula down from the top cell to the bottom (ActiveCell.FormulaR1C1 = "=RC[-1]-RC[-5]"). Now, I find that I need to add an "if" statement. If the RC[-1] is less than zero, then I want "na" in the formula column. So, I thought that I could just use the statement ActiveCell.FormulaR1C1 = "if (RC[-1]>0,RC[-1]-RC[-5],na)". That didn't work so well! I need help using ActiveCell with a formula. Any help appreciated greatly!!!
Peace,
krfb
Peace,
krfb