StrReverse Function [VBA]

Returns the string with the character order reversed.

Ikona ostrzeżenia

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


Składnia:

StrReverse (Text1 As String)

Zwracana wartość:

String

Parametry:

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

Kody błędów:

5 Nieprawidłowe wywołanie procedury

Przykład:

Sub ExampleReverse

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

End Sub