Hi, I have a txt file with rows as follows:
row 1-> "Long-NSX,Short-ACC,0.40238"
row 2-> "Long-NSX,Short-BHE,0.4096"
I want to read it in an excel workbook using the Text Import Wizard by using the Delimited Option, and using the Tab, Semicolon and the Other option with the character as "-" so that my Excel sheet reads:
Col 1 Col 2 Col 3 Col 4 Col 5
Long NSX Short ACC 0.40238
Long NSX Short BHE 0.4096
etc ...
can some guide me how to programatically use the Text Import Wizard in VBA to achieve the above. I am a beginning programmer in VBA.
Also I would be very grateful if someone can tell me the commands to (a) set the column width in Excel thru VBA (b) how to delete a column thru VBA and (c) how to set the column width to minimum possible column width such that the elements are still visible (i.e. equivalent to double-clicking in the partition between two columns)
Thanks a lot.
row 1-> "Long-NSX,Short-ACC,0.40238"
row 2-> "Long-NSX,Short-BHE,0.4096"
I want to read it in an excel workbook using the Text Import Wizard by using the Delimited Option, and using the Tab, Semicolon and the Other option with the character as "-" so that my Excel sheet reads:
Col 1 Col 2 Col 3 Col 4 Col 5
Long NSX Short ACC 0.40238
Long NSX Short BHE 0.4096
etc ...
can some guide me how to programatically use the Text Import Wizard in VBA to achieve the above. I am a beginning programmer in VBA.
Also I would be very grateful if someone can tell me the commands to (a) set the column width in Excel thru VBA (b) how to delete a column thru VBA and (c) how to set the column width to minimum possible column width such that the elements are still visible (i.e. equivalent to double-clicking in the partition between two columns)
Thanks a lot.