I have the following code which works fine in Excel 2010 but when a user runs it in excel 2013 it does not perform as expected - the formula is set in the whole Amount column, rather than just in the D2 cell
where Bal_Amt is a named cell with some dollar value and [@[Amount]] is an Amount column in a table
I have also tried all of these to no avail.
Any tips / solutions are most appreciated
Code:
Range("D2").Select
ActiveCell.FormulaR1C1 = "=Bal_Amt+[@[Amount]]"
where Bal_Amt is a named cell with some dollar value and [@[Amount]] is an Amount column in a table
I have also tried all of these to no avail.
Code:
Range("D2").Select
ActiveCell.FormulaR1C1 = "=Bal_Amt+[@[Amount]]"
Selection.FormulaR1C1 = "=Bal_Amt+[@[Amount]]"
Worksheets("worksheet").Range("D2").FormulaR1C1 = "=Bal_Amt+[@[Amount]]"
Worksheets("worksheet").Range("D2").Formula = "=Bal_Amt+[@[Amount]]"
Any tips / solutions are most appreciated