NativeExcel for .Net Developer's Reference

IRange.AddressMethod()

Returns the local range reference.

[Visual Basic]
FunctionAddress()AsString
[C#]
stringAddress();
[C++]
String*Address();
[JScript]
functionAddress():String;

Return Value

Returns a string.

Example

This example returns the local reference for the used range

[C#]
string ref = book.Worksheets[1].UsedRange.Address();
[VisualBasic]
Dim ref As String = book.Worksheets(1).UsedRange.Address()
[C++]
String^ ref = book->Worksheets->Item[1]->UsedRange->Address();

See Also

IRange Interface | NativeExcel Namespace | IRange.Address Overload List