Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub ReverseCell(ByRef oCell As Range)
Dim i As Integer
Dim impStr As String
Dim outStr As String
impStr = oCell.Value
For i = Len(impStr) To 1 Step -1
outStr = outStr & Mid$(impStr, i, 1)
Next i
oCell.Value = outStr
End Sub
Sub ReverseCell2()
Dim i As Integer
Dim impStr As String
Dim outStr As String
impStr = ActiveCell.Value
For i = Len(impStr) To 1 Step -1
outStr = outStr & Mid$(impStr, i, 1)
Next i
ActiveCell.Value = outStr
End Sub
Function ReverseCell3(ByVal oCell As Range) As String
Dim i As Integer
Dim impStr As String
Dim outStr As String
impStr = oCell.Value
For i = Len(impStr) To 1 Step -1
outStr = outStr & Mid$(impStr, i, 1)
Next i
ReverseCell3 = outStr
End Function
Sub ApplyReverse()
Dim Rng as Range
dim OneCell as Range
Set Rng = ActiveSheet.Range("C12:E12")
For Each OneCell In Rng
ReverseCell OneCell
Next OneCell
End Sub