ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   TextToColumns Method: How to use xlFixedWidth? (https://www.excelbanter.com/excel-programming/391419-texttocolumns-method-how-use-xlfixedwidth.html)

J@Y

TextToColumns Method: How to use xlFixedWidth?
 
I am trying to simulate what I do manually with the Text to Column function
in Datas menu. Basically I have a range select, I go to T to C function, I
chose FixedWidth, then but 2 separators at 30 and 60. How would I do that
using the TextToColumns in VB?

Dave Peterson

TextToColumns Method: How to use xlFixedWidth?
 
VB or VBA?

In VBA, I'd record a macro when I did it manually.

In VBA, I'd record a macro when I did it manually and then try to change it to
run from VB.

J@Y wrote:

I am trying to simulate what I do manually with the Text to Column function
in Datas menu. Basically I have a range select, I go to T to C function, I
chose FixedWidth, then but 2 separators at 30 and 60. How would I do that
using the TextToColumns in VB?


--

Dave Peterson


All times are GMT +1. The time now is 10:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com