I wrote this little macro to reverse a text string. I have 2 questions:
- How can get the macro to leave the selection selected?
- Does anyone have any comments on the code? Is there a better way?
Code:
Sub MyRevText()
Dim oRange As Range
Dim sString As String
Set oRange = Selection.Range
sString = oRange.Text
sString = StrReverse(sString)
oRange.Text = sString
End Sub