NamedRange::AddressLocal Property

 

Gets the range reference for the NamedRange control in the language of the user.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

property NamedRange_AddressLocalType^ AddressLocal {
	NamedRange_AddressLocalType^ get();
}

Property Value

Type: Microsoft.Office.Tools.Excel::NamedRange_AddressLocalType^

A string that represents the range reference of the NamedRange control in the language of the user and in R1C1-stye or A1-style notation.

The AddressLocal property is intended to be used with the following parameters.

Parameter

Description

RowAbsolute

true to return the row as an absolute reference. The default value is true.

ColumnAbsolute

true to return the column as an absolute reference. The default value is true.

ColumnAbsolute

One of the XlReferenceStyle values.

External

true to return an external reference; false to return a local reference. The default value is false.

RelativeTo

A Range that defines the starting point. If RowAbsolute and ColumnAbsolute are false, and ReferenceStyle is xlR1C1, you must include a starting point for the relative reference.

If you attempt to use AddressLocal without specifying any parameters, AddressLocal will get a NamedRange_AddressLocalType object that is part of the Visual Studio infrastructure and is not intended to be used directly from your code.

If the reference contains more than one cell, RowAbsolute and ColumnAbsolute apply to all rows and columns.

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

The following code example creates a NamedRange and then displays the address of the NamedRange in four formats. If the example is run on a system using German language support, the example will display the address strings "$A$2", "$A2", "Z2S2", and "Z[-1]S[-1]".

This version is for a document-level customization.

No code example is currently available or this language may not be supported.

This version is for an application-level add-in.

Return to top
Show: