Range.AddressLocal (Excel)

Returns the range reference for the specified range in the language of the user.

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

AddressLocal (RowAbsolute, ColumnAbsolute, ReferenceStyle, External, RelativeTo)


Dim strAddressLocal As String
strAddressLocal = ActiveCell.AddressLocal

Arguments

Optional arguments

The following arguments are optional

RowAbsolute (Boolean) - True to return the row part of the reference as an absolute reference. The default value is True.

ColumnAbsolute (Boolean) - True to return the column part of the reference as an absolute reference. The default value is True.

ReferenceStyle (XlReferenceStyle) - One of the constants for XlReferenceStyle specifying A1-style or R1C1-style reference.

Possible return values are xlA1 - Default. Use xlA1 to return an A1-style reference, xlR1C1 - Use xlR1C1 to return an R1C1-style reference.

External (Boolean) - True to return an external reference. False to return a local reference. The default value is False.

RelativeTo (Range) - If RowAbsolute and ColumnAbsolute are both set to False and ReferenceStyle is set to xlR1C1, you must include a starting point for the relative reference. This argument is a Range object that defines the starting point for the reference.