FillRight Method

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Fills right from the leftmost cell or cells in the specified range. The contents and formatting of the cell or cells in the leftmost column are copied into the rest of the columns in the range.

expression.FillRight

expression   Required. An expression that returns a Range object.

Example

This example fills the range A1:M1 on the active worksheet, based on the contents of cell A1.

  Spreadsheet1.ActiveSheet.Range("A1:M1").FillRight