I have a .txt file that shows various information in sections about production orders. I can easily identify the sections of information, but the information will usually be just a little different, but in the same relative format.
When I highlight a section and click text to columns, it automatically calculates a "fixed width" array that works perfectly. This is great, except that doesnt work for a macro because that array might be slightly different.
I can use vba to highlight the sections, but need to figure out how to tell excel to calculate the proper fixed width array and apply it before moving on to the next section. I'd even be ok with using vba to highlight the section, open the text to columns window and having the user click ok, but it seems that I have to identify all of the variables for the text to columns function to work.
Any thoughts on how to ask excel to calculate the fixed width?
TIA!!!
When I highlight a section and click text to columns, it automatically calculates a "fixed width" array that works perfectly. This is great, except that doesnt work for a macro because that array might be slightly different.
I can use vba to highlight the sections, but need to figure out how to tell excel to calculate the proper fixed width array and apply it before moving on to the next section. I'd even be ok with using vba to highlight the section, open the text to columns window and having the user click ok, but it seems that I have to identify all of the variables for the text to columns function to work.
Any thoughts on how to ask excel to calculate the fixed width?
TIA!!!