Change the second to last from "0" to "-"
Hello Rick
Excellent thankyou
Steved
"Rick Rothstein" wrote:
Give this macro a try...
Sub ReplaceNextToLastZeroWithDash()
Dim C As Range, T As String
For Each C In Intersect(Columns("B"), ActiveSheet.UsedRange)
T = C.Text
If Len(T) 1 Then
If Mid(T, Len(T) - 1, 1) = "0" Then
Mid(T, Len(T) - 1, 1) = "-"
C.Value = T
End If
End If
Next
End Sub
--
Rick (MVP - Excel)
"Steved" wrote in message
...
Hello from Steved
Column B:B
numerals 6 to 8
Objective
Change the second to last from "0" to "-" please
I Thankyou.
|