MikeTruscott
Technical User
Hi everyone!
Basically I build a string in vba which looks something like:
formula_string = "=R[18]C+R[36]C+R[54]C+........."
and then I paste it into a worksheet.
I've had no problems doing this before, but before now the string has only been around 20 characters long.
Now I've added more data to the model the string length has risen to over 300 characters in length! Now I get an error on the line:
Worksheets("Data__DAY").Cells(1,1).FormulaArray = formula_String
"Unable to set the FormulaArray property of the Range Class"
I'm assuming it's because the string is too long, but I can type a similar length formula in the actual sheet with no problems.
So is there anything I can do?
Any help would be greatly appreciated.
Cheers
Mike
Basically I build a string in vba which looks something like:
formula_string = "=R[18]C+R[36]C+R[54]C+........."
and then I paste it into a worksheet.
I've had no problems doing this before, but before now the string has only been around 20 characters long.
Now I've added more data to the model the string length has risen to over 300 characters in length! Now I get an error on the line:
Worksheets("Data__DAY").Cells(1,1).FormulaArray = formula_String
"Unable to set the FormulaArray property of the Range Class"
I'm assuming it's because the string is too long, but I can type a similar length formula in the actual sheet with no problems.
So is there anything I can do?
Any help would be greatly appreciated.
Cheers
Mike