VBA STRREVERSE Function (Syntax + Example)

- Written by Puneet


The VBA STRREVERSE function is listed under the text category of VBA functions. When you use it in a VBA code, it returns a string by reversing the original string supplied. In simple words, if you supply the string “Hello” it will return “olleh” in the result.




  • Expression: The string which you want to reverse.


To practically understand how to use the VBA STRREVERSE function, you need to go through the below example where we have written a vba code by using it:

Sub example_STRREVERSE()
Range("B1").Value = StrReverse(Range("A1"))    
End Sub

In the above code, we have used STRREVERSE to reverse the text from cell A1 and return the result in cell A1.

Last Updated: June 22, 2023