Text Documents (Writer)
HTML Documents (Writer Web)
Spreadsheets (Calc)
Presentations (Impress)
Drawings (Draw)
Database Functionality (Base)
Formulae (Math)
Charts and Diagrams
Macros and Scripting
Office Installation
Common Help Topics
OneOffice Logo

StrReverse Function [VBA]

Returns the string with the character order reversed.

This constant, function or object 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.

Error codes:

5 Invalid procedure call

Example:


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