Hi インストーラー,
I have a problem with Excel's "Text to Columns" . This happens when use the "Text to Columns" button and macro(see below).
Last column does not separate and A value in the second column moves to the top. I don't know why.
Please, someone, kindly explain it.
Thank you.
Last columns does not change. A value in the second column moves to top.
Here is the test macro.
Columns("S:S").Select
Selection.TextToColumns Destination:=Range("S1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _
:="[", FieldInfo:=Array(1, 1), TrailingMinusNumbers:=True
Your code works for me. Perhaps your problem arises if you try to perform the Text to Columns operation manually. In this case, I could reproduce your experience by selecting the data in cells S2:S12 and specifying S1 as the destination cell. In this way you create a one row offset to the data and, as you have observed, the last data cell, S12, will not be overwitten. This problem may be avoided either by including the S1 cell in your manual selection or by specifying S2 as the destination cell, Your code implicitly adopts the first solution by selecting the entire column.
===
Regards,
Norman