I have a string "00:E0:E4:F2:98:77" and i want to delete the colons. With the code it replaces the string with "00E0E4F29877" which is the back space. How do i get rid of these squares. These numbers are being sent to a text document. Here's how I want it to look. "00E0E4F29877"
Here is my code....
Function del_colon(string_in As String) As String
Dim i As Integer
Dim string_out As String
string_out = ""
For i = 1 To Len(string_in)
If Mid(string_in, i, 1) = ":" Then
Mid(string_in, i, i) = Chr(8)
string_out = string_in
End If
Next
del_colon = string_out
End Function
Here is my code....
Function del_colon(string_in As String) As String
Dim i As Integer
Dim string_out As String
string_out = ""
For i = 1 To Len(string_in)
If Mid(string_in, i, 1) = ":" Then
Mid(string_in, i, i) = Chr(8)
string_out = string_in
End If
Next
del_colon = string_out
End Function