The VBA StrReverse function reverses a supplied String.
The syntax of the function is:
Where the Expression argument is the String that you want to reverse.
The following VBA code uses the StrReverse function to reverse a simple String.
' Reverse the String "Test String".
Dim revStr As String' The variable revStr is now equal to "gnirtS tseT".
revStr = StrReverse( "Test String" )
In the above example, the VBA StrReverse function returns the String "gnirtS tseT"