Answers for "excel vba how to get a range's full address including sheet name"

VBA
4

excel vba how to get a range's full address including sheet name

'VBA function to retrieve the full address of a range:

Function FullAddress(r As Range)
    With r
        FullAddress = "'" & .Parent.Name & "'!" & .Address
    End With
End Function

'--------------------------------------------------------------------

MsgBox FullAddress		'Displays: 'My Sheet'!$A$1:$Z$99
Posted by: Guest on March-30-2020

Code answers related to "excel vba how to get a range's full address including sheet name"

Code answers related to "VBA"

Browse Popular Code Answers by Language