Hi everyone,
I'm trying to set up a macro which puts a very long formula into a cell when a button is pressed. The formula in question is 2000 characters long and using
ActiveCell.FormulaR1C1 =
Didn't work, presumably because the formula was too long.
One option is to store the formula somewhere else in the workbook and just have the macro copy and paste it into the required place but I'd like to avoid that if possible.
So the code needs to select the sheet titled "Output". Select Cell D2 and dump the long formula into there. Then it just has to be autofilled down to cell D1500.
Is as far as I got. Can anyone help?Sheets("Output").Select
Range("D2").Select
ActiveCell.FormulaR1C1 = BIG FORMULA
Selection.AutoFill Destination:=Range("D2:D1500"), Type:=xlFillDefault![]()
Bookmarks