I'm writing a macro and am copying a formula, that is absolute, from a cell one worksheet, to another cell on another worksheet, The formula is as follows
=IF(AND(Input!$C$3="",Input!$D$3=""),"",IF($F$3="cash","cash",IF(Input!$C$3>0,Input!$C$2,Input!$D$2)))
Once pasted I need to convert the formula to the following
=IF(AND(Input!c3="",Input!D3=""),"",IF(F3="cash","cash",IF(Input!C3>0,Input!$C$2,Input!$D$2)))
Basically I need to convert characters C3, D3, and F3 to relative, while leaving characters $C$2 and $D$2 as absolute. Does anyone know the vba code to accomplish this (using excel 2007)
Thanks so much
Marty
=IF(AND(Input!$C$3="",Input!$D$3=""),"",IF($F$3="cash","cash",IF(Input!$C$3>0,Input!$C$2,Input!$D$2)))
Once pasted I need to convert the formula to the following
=IF(AND(Input!c3="",Input!D3=""),"",IF(F3="cash","cash",IF(Input!C3>0,Input!$C$2,Input!$D$2)))
Basically I need to convert characters C3, D3, and F3 to relative, while leaving characters $C$2 and $D$2 as absolute. Does anyone know the vba code to accomplish this (using excel 2007)
Thanks so much
Marty