Share via


NamedRange.CreateNames(Object, Object, Object, Object) Method

Definition

Creates names in the NamedRange control, based on text labels in the sheet.

public object CreateNames (object Top, object Left, object Bottom, object Right);
abstract member CreateNames : obj * obj * obj * obj -> obj
Public Function CreateNames (Optional Top As Object, Optional Left As Object, Optional Bottom As Object, Optional Right As Object) As Object

Parameters

Top
Object

true to create names by using labels in the top row. The default value is false.

Left
Object

true to create names by using labels in the left column. The default value is false.

Bottom
Object

true to create names by using labels in the bottom row. The default value is false.

Right
Object

true to create names by using labels in the right column. The default value is false.

Returns

Remarks

If you do not specify one of Top, Left, Bottom, or Right, Microsoft Office Excel guesses the location of the text labels, based on the shape of the NamedRange control.

Optional Parameters

For information on optional parameters, see Optional Parameters in Office Solutions.

Applies to