P
PHisaw
I have the formula below and have tried copying it down column in macro. It
will calculate the first cell "Q2" properly, but copies the same calculation
from Q2 to all other cells. If I click in the formula and then the check
mark to the left of formula, it calculates properly in the cell.
How can I make it calculate properly from the macro? Also the range will
change with each import to the worksheet the macro is applied to. How can I
write the macro to apply to all cells in column Q where there is data in
other columns in formula?
Range("Q2").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC15={30,0}),RC7,IF(AND(rc15=""cc""),IF(OR(RC3={""mdu"",""kiu"",""cvu""}),RC7+90,RC7+30)))"
Range("Q2:Q78").FillDown
Thanks in advance for any help available.
Pam
will calculate the first cell "Q2" properly, but copies the same calculation
from Q2 to all other cells. If I click in the formula and then the check
mark to the left of formula, it calculates properly in the cell.
How can I make it calculate properly from the macro? Also the range will
change with each import to the worksheet the macro is applied to. How can I
write the macro to apply to all cells in column Q where there is data in
other columns in formula?
Range("Q2").Select
ActiveCell.FormulaR1C1 = _
"=IF(OR(RC15={30,0}),RC7,IF(AND(rc15=""cc""),IF(OR(RC3={""mdu"",""kiu"",""cvu""}),RC7+90,RC7+30)))"
Range("Q2:Q78").FillDown
Thanks in advance for any help available.
Pam