FillUp Method

Applies To

Range object.

Description

Fills up from the bottom cell or cells in the specified range to the top of the range. The contents and formatting of the cell or cells in the bottom row of a range are copied into the rest of the rows in the range.

Syntax

expression.FillUp

expression Required. An expression that returns a Range object.

See Also

AutoFill method, FillDown method, FillLeft method, FillRight method.

Example

This example fills the range A1:A10 on Sheet1, based on the contents of cell A10.

Worksheets("Sheet1").Range("A1:A10").FillUp