after invoke VBA , you can read range WITHOUT preserve format so it will be much faster but format will be the same
Function convertSheetToTextFormat(sheetName As String)
ActiveWorkbook.Sheets(sheetName).Activate
For i = 1 To 100
Dim letter As String
letter = ConvertNumberToLetter(CInt(i))
Columns(letter & ":" & letter).Select
On Error Resume Next
Selection.TextToColumns Destination:=Range(letter & "1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 2), TrailingMinusNumbers:=True
Next i
ActiveWorkbook.Save
End Function
Function ConvertNumberToLetter(columnNumber As Integer)
Dim letter
letter = Split(Cells(1, columnNumber).Address, "$")(1)
ConvertNumberToLetter = letter
End Function
Function convertSheetToTextFormat(sheetName As String)
ActiveWorkbook.Sheets(sheetName).Activate
For i = 1 To 100
Dim letter As String
letter = ConvertNumberToLetter(CInt(i))
If letter = "AM" Or letter = "AN" Or letter = "AO" Or letter = "AP" Then
'skip
Else
Columns(letter & ":" & letter).Select
On Error Resume Next
Selection.TextToColumns Destination:=Range(letter & "1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 2), TrailingMinusNumbers:=True
Next i
End If
ActiveWorkbook.Save
End Function
Function ConvertNumberToLetter(columnNumber As Integer)
Dim letter
letter = Split(Cells(1, columnNumber).Address, "$")(1)
ConvertNumberToLetter = letter
End Function
Function convertSheetToTextFormat(sheetName As String)
ActiveWorkbook.Sheets(sheetName).Activate
For i = 1 To 100
Dim letter As String
letter = ConvertNumberToLetter(CInt(i))
If letter = "AM" Or letter = "AN" Or letter = "AO" Or letter = "AO" Then
'skip
Else
Columns(letter & ":" & letter).Select
On Error Resume Next
Selection.TextToColumns Destination:=Range(letter & "1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 2), TrailingMinusNumbers:=True
End If
Next i
ActiveWorkbook.Save
End Function
Function ConvertNumberToLetter(columnNumber As Integer)
Dim letter
letter = Split(Cells(1, columnNumber).Address, "$")(1)
ConvertNumberToLetter = letter
End Function