indi visual
Member
My aim for this is to find the second character from the left (which is a "{") and replace it with nothing. For one reason or another I'm having trouble?
Sub Find_Character_Second_From_Left_At_Start_Of_String()
Dim Cell As Range
Dim MyString As String
Dim MyRange As Range
Set MyRange = Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each Cell In MyRange
If WorksheetFunction.Mid(MyString, 2, 1) = "{" Then
MyString = WorksheetFunction.Substitute(MyString, "{", "")
End If
Next Cell
End Sub
Sub Find_Character_Second_From_Left_At_Start_Of_String()
Dim Cell As Range
Dim MyString As String
Dim MyRange As Range
Set MyRange = Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row)
For Each Cell In MyRange
If WorksheetFunction.Mid(MyString, 2, 1) = "{" Then
MyString = WorksheetFunction.Substitute(MyString, "{", "")
End If
Next Cell
End Sub