30 Advanced Excel Tips for 2026

Excel Champs / VBA / Top VBA Functions / VBA STRREVERSE Function (Syntax + Example)
By Puneet Gogia (Microsoft MVP)

VBA STRREVERSE Function (Syntax + Example)

30+ Advanced Excel Tips for 2026

No spam. Only Excel Stuff. God Promise. 😊

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.

Syntax

StrReverse(Expression)

Arguments

  • Expression: The string which you want to reverse.

Example

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:

example-vba-strreverse-function
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.

Puneet Gogia

Written by

Puneet Gogia

Microsoft MVP — Excel · Founder, Excel Champs

Twelve years of teaching Excel, and a decade before that using it as a data analyst. Every tutorial here is written from a file I actually built.

3M+ readers helped
1,000+ tutorials written
Since 2015 teaching Excel