Excel Developer Reference
Range.Formula Property
-----------------------------------------
Returns or sets a Variant value that represents the object's formula in A1-style notation and in the language of the macro.
Syntax:expression.Formula
expression: A variable that represents a Range object.
Remarks:If the range is a one- or two-dimensional range, you can set the formula to a Visual Basic array of the same dimensions. Similarly, you can put the formula into a Visual Basic array.
Setting the formula for a multiple-cell range fills all cells in the range with the formula.
Example: This example sets the formula for cell A1 on Sheet1.
Worksheets("Sheet1").Range("A1").Formula = "=$A$4+$A$10"
Bookmarks