What is the best way to convert a range of cells to a string?
I have a function that only takes a string as input so I need to convert the range to a string, while retaining
This does the job, even with the Range in another Worksheet
Function RangeToString(ByVal myRange As range) As String
RangeToString = ""
If Not myRange Is Nothing Then
RangeToString = "=" & myRange.Worksheet.Name & "!" & myRange.Address
End If
End Function