Home:ALL Converter>Vba-Return cell address from a range array

Vba-Return cell address from a range array

Ask Time:2017-05-31T03:15:07         Author:user3286479

Json Formatter

I read a range on a worksheet and put it into an array.

Dim Arr() As Variant
Arr = Range("B3:G11")
Dim R As Long
Dim C As Long
For R = 1 To UBound(Arr, 1)
    For C = 1 To UBound(Arr, 2)
        Debug.Print Arr(R, C)
    Next C
Next R

This returns the value of the cell. Is there a way to get the address of the cell?!

Thank you in advance.

Author:user3286479,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/44270209/vba-return-cell-address-from-a-range-array
yy