NamedRange.CreateNames Method
Visual Studio 2010
Creates names in the NamedRange control, based on text labels in the sheet.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Parameters
- Top
- Type: System.Object
true to create names by using labels in the top row. The default value is false.
- Left
- Type: System.Object
true to create names by using labels in the left column. The default value is false.
- Bottom
- Type: System.Object
true to create names by using labels in the bottom row. The default value is false.
- Right
- Type: System.Object
true to create names by using labels in the right column. The default value is false.
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.
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.