As per the below snippet of code, I am entering a formula, in VBA, to a range of cells. The procedure successfully adds the formula but even though I recalculate afterwards the cells just show '#Name?'???
The formula is correct and if I manually edit the cell and then press 'enter' then the formula will calculate.
Any ideas how I can get the formulas to calculate once I've entered the code?
Many thanks,
Adrian
mrange.Cells(m, 1).Offset(, 14).FormulaR1C1 = "=if(vlookup(RC1, '" & NIsheetname & "'!a:o, 15, false)= """","""",(vlookup(RC1, '" & NIsheetname & "'!a:o, 15, false)))"
Bookmarks