TOP

VBA Function: StrReverse

YouLibreCalc for Excel logo

Description

The VBA STRREVERSE Function returns a character string after reversing the order of the characters.


STRREVERSE Syntax

StrReverse(value)

VBA StrReverse Example

Reverse the order of characters of different values:

Sub StrReverseExample()

     MsgBox StrReverse("Excel")                'Returns: lecxE
     MsgBox StrReverse("www.moonexcel.com.ua") 'Returns: au.moc.lecxenoom.www
     MsgBox StrReverse(1234)                   'Returns: 4321
     MsgBox StrReverse("stats")                'Returns: stats
     MsgBox StrReverse(True)                   'Returns: eurT
    
End Sub