VBA StrReverse function

StrReverse Function Description

The VBA StrReverse function returns a string which characters are in reverse order.

Syntax

The syntax for the StrReverse function in VBA is:

StrReverse( text )

Parameters

expression
The string which characters are to be reversed.

Example usage

The StrReverse function can be used in VBA code. Let’s look at some VBA StrReverse function examples:

StrReverse "Hello World!"
'Result: "!dlroW olleH"

StrReverse "12345"
'Result: "54321"