Hi
I'm running Excel 2010 and would appreciate help on a #Name error when trying to enter a formula using active cell.offset via VBA
ActiveCell.Offset(0, 4).Formula = "=If(ActiveCell.Offset(0, 1)>0,ActiveCell.Offset(0, 17) / ActiveCell.Offset(0, 1),0)"
The above 'works' in that a 'formula' is inserted in the target cell, but it doesn't evaluate the result, just gives #NAME error and the cell contents seem to be a text string
I'm running Excel 2010 and would appreciate help on a #Name error when trying to enter a formula using active cell.offset via VBA
ActiveCell.Offset(0, 4).Formula = "=If(ActiveCell.Offset(0, 1)>0,ActiveCell.Offset(0, 17) / ActiveCell.Offset(0, 1),0)"
The above 'works' in that a 'formula' is inserted in the target cell, but it doesn't evaluate the result, just gives #NAME error and the cell contents seem to be a text string