Reverse String

Function revstr(s As String) As String 
'
' revstr Macro
'

revstr = ""
 
If s = "" Then Exit Function
 
For j = Len(s) To 1 Step -1   
    revstr = revstr & Mid(s, j, 1)
Next

End Function

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.