jamminjaymeyer
Programmer
I have a number of cells that now require an if statement to be included at the begining. The macro code that I am trying to use is:
ActiveCell.FormulaR1C1 = "=if(N7=0,0," & Right(ActiveCell.FormulaR1C1, Len(ActiveCell.FormulaR1C1) - 1) & ")"
All of it work fine except the N7 reference. When I run this macro it puts 'N7' rather than the cell reference. Is there anyway to not make Excel treat this N7 reference as a string?
Thanks,
jamminjaymeyer
ActiveCell.FormulaR1C1 = "=if(N7=0,0," & Right(ActiveCell.FormulaR1C1, Len(ActiveCell.FormulaR1C1) - 1) & ")"
All of it work fine except the N7 reference. When I run this macro it puts 'N7' rather than the cell reference. Is there anyway to not make Excel treat this N7 reference as a string?
Thanks,
jamminjaymeyer