Page tree
Skip to end of metadata
Go to start of metadata

Description

Creates a named Range of cells from a specified formula. A Range is a collection of Area s; an Area area is a rectangular collection of cells.

C#
vb.net

Parameters

rangeFormula
Formula representing the range, for example "=Sheet1!A1:G10". The formula must be three-dimensional (specify a sheet), and can include only sheet and cell references, and operators joining those references (range ':', intersection ' ', and union ','). Functions that return ranges cannot be used.
rangeName
The name to assign to the range.

Returns

Range A Range object representing the range of cells created.

Remarks

Note that if a range named rangeName already exists in the workbook, it will be overwritten with the new named range created by this method.

Examples

C#
vb.net
  • No labels