• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

reversecell

Ahhhmed


You can use a simple User Defined Function like

[pre]
Code:
Function reversecell(myString As String) As Variant
Application.Volatile
reversecell = StrReverse(myString)
End Function
[/pre]

Just copy and paste it into a Code Module in VBA (Alt Fll)


to use =reversecell(A1)

eg: Hello World dlroW olleH
 
you can use something like:


=MID(B3,10,1) & MID(B3,9,1) & MID(B3,8,1) & MID(B3,7,1) & MID(B3,6,1) & MID(B3,5,1) & MID(B3,4,1) & MID(B3,3,1) & MID(B3,2,1) & MID(B3,1,1)


if you want to reverse the string in B3 AND YOUR STRING IS NO LONGER THAN 10 CHARACTERS... :p


this is not very elegant, but you dont need a macro or udf.


if you want to apply this to larger than 10 characters, just reply the MID(B3, XXX, 1) module in the beggining as long as you want.
 
Back
Top