This documentation is archived and is not being maintained.

Range.CreateNames Method 

Creates names in the specified range, based on text labels in the sheet.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim Top As Object
Dim Left As Object
Dim Bottom As Object
Dim Right As Object
Dim returnValue As Object
Dim range1 As Range
returnValue = range1.CreateNames(Top, Left, Bottom, Right)

object CreateNames(
	[In, Optional] object Top, 
	[In, Optional] object Left, 
	[In, Optional] object Bottom, 
	[In, Optional] object Right
);
public System.Object CreateNames(
	/*in*/System.Object Top, 
	/*in*/System.Object Left, 
	/*in*/System.Object Bottom, 
	/*in*/System.Object Right
);
function CreateNames(
	 Top : Object, 
	 Left : Object, 
	 Bottom : Object, 
	 Right : Object
) : Object;

Parameters

Top

Optional Object. True to create names by using labels in the top row. The default value is False.

Left

Optional Object. True to create names by using labels in the left column. The default value is False.

Bottom

Optional Object. True to create names by using labels in the bottom row. The default value is False.

Right

Optional Object. True to create names by using labels in the right column. The default value is False.

If you don’t specify one of Top, Left, Bottom, or Right, Microsoft Excel guesses the location of the text labels, based on the shape of the specified range.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Show: