Hi Everyone,
I am having issues when I attempt to add a formula to a worksheet cell via VBA, firstly even if I use a variable.string it still falls over, the code I have an issue with is as follows
when I check the cell I get
instead of getting
I am having issues when I attempt to add a formula to a worksheet cell via VBA, firstly even if I use a variable.string it still falls over, the code I have an issue with is as follows
when I check the cell I get
Code:
=COUNTA('D3':'D300')"
Code:
=COUNTA(D3:D300)"
Code:
Dim Counter_Insert As String
Counter_Insert = "=COUNTA(D3:D300)"
'
''' ActiveWorkbook.Save
Range("D2").Select
ActiveCell.FormulaR1C1 = Counter_Insert