StrReverse Function [VBA]

Returns the string with the character order reversed.

рдЪреЗрддрд╛рд╡рдиреА рдкреНрд░рддрд┐рдорд╛

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


Syntax:


StrReverse (Text1 As String)

Return value:

String

Parameters:

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

рддреНрд░реБрдЯрд┐ рд╕рдЩреНрдХреЗрддрд╣рд░реВ

5 рдЕрд╡реИрдз рдХрд╛рд░реНрдп-рд╡рд┐рдзрд┐ рдХрд▓

Example:


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