Good afternoon, we have data that comes from a 3rd party, attached, and there appears to be hidden apostrophes in the output. I just did a macro record to try to do a Text-to-Columns but, as you can see, the result is patchy. Can you suggest how to get rid of them before I run this simple code?
Many thanks.
Many thanks,
D€$
Many thanks.
Code:
Sub TextToColumns()
'
' TextToColumns Macro
'
Dim Counter As Integer
Dim MyString As String
Dim WS As Worksheet
For Each WS In ActiveWorkbook.Worksheets
With WS
WSName = .Name
.Activate
End With
MyString = "IJK" 'define string
For Counter = 1 To Len(MyString)
x = Mid(MyString, Counter, 1)
Columns(x & ":" & x).Select
Selection.TextToColumns Destination:=Range(x & "1"), DataType:=xlFixedWidth, _
FieldInfo:=Array(0, 1), TrailingMinusNumbers:=True
Next Counter
Next WS
End Sub
Many thanks,
D€$