StrReverse Function [VBA]

Returns the string with the character order reversed.

Advarselsikon

This function or constant is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.


Syntaks:

StrReverse (Text1 As String)

Returverdi:

String

Parametre:

Text1: The string expression that you want to reverse the character order.

Feilkoder

5 Ugyldig prosedyreoppkall

Eksempel:

Sub ExampleReverse

 Print StrReverse("ABCdefGH") ' return "HGfedCBA"

End Sub