Reverse a string in Excel using a user-defined function
- Place the function below in a VBA module
- In a worksheet enter the formula
=ReverseString(A1)
Function ReverseString(str As String) As String
ReverseString = StrReverse(Trim(str))
End Function