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

The solution for “excel vba how to get a range’s full address including sheet name” can be found here. The following code will assist you in solving the problem.

‘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

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts