StrReverse Function [VBA]

Returns the string with the character order reversed.

warning

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


Sintaxi:


StrReverse (Text1 As String)

Valor de retorn:

Cadena

Paràmetres :

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

Codis d'error

5 La crida al procediment no és vàlida

Exemple :


Sub ExampleReverse
 Print StrReverse("ABCdefGH") ' return "HGfedCBA"
End Sub

Please support us!