Hello Dear community,
I have cells with array formulas I used sign ' to store them as text. So depending on users choice VBA needs to insert that array formula to cell AA10.
Example, this formula is in range A4:
'='sales data'!AA10*RAND()*10000000
I want to insert this array formula to sheet ws.range("AA10")
I used this code:
But it doesn't works. Can anyone help me please?
I have cells with array formulas I used sign ' to store them as text. So depending on users choice VBA needs to insert that array formula to cell AA10.
Example, this formula is in range A4:
'='sales data'!AA10*RAND()*10000000
I want to insert this array formula to sheet ws.range("AA10")
I used this code:
VBA Code:
ws.Range("AA10").FormulaArray = Sheets("ArrayBackend").Range("A" & Cell.Row).Offset(, 1).Formula
'And also tried'
ws.Range("AA10").FormulaArray = Sheets("ArrayBackend").Range("A" & Cell.Row).Offset(, 1).value
But it doesn't works. Can anyone help me please?