Hi, I am using this function in a single column to reverse the contents of another cell.
"Option Explicit
Function ReverseCell(Rcell As Range, Optional IsText As Boolean)
Dim i As Integer
Dim StrNewNum As String
Dim strOld As String
strOld = Trim(Rcell)
For i = 1 To Len(strOld)
StrNewNum = Mid(strOld, i, 1) & StrNewNum
Next i
If IsText = False Then
ReverseCell = CLng(StrNewNum)
Else
ReverseCell = StrNewNum
End If
End Function"
Is there something I can add here to remove the punctuation of the cell being copied and reversed in the target cell?
IE 24.17f9 is in cell a6, using this it is 9f71.42 in cell s6. I want cell s6 to read 9f7142.
Thanks in advance.
"Option Explicit
Function ReverseCell(Rcell As Range, Optional IsText As Boolean)
Dim i As Integer
Dim StrNewNum As String
Dim strOld As String
strOld = Trim(Rcell)
For i = 1 To Len(strOld)
StrNewNum = Mid(strOld, i, 1) & StrNewNum
Next i
If IsText = False Then
ReverseCell = CLng(StrNewNum)
Else
ReverseCell = StrNewNum
End If
End Function"
Is there something I can add here to remove the punctuation of the cell being copied and reversed in the target cell?
IE 24.17f9 is in cell a6, using this it is 9f71.42 in cell s6. I want cell s6 to read 9f7142.
Thanks in advance.