QuantBurner
New Member
- Joined
- Jan 29, 2011
- Messages
- 42
Hi!
I download .csv files with CUSIPs. The cusips are nine characters and sometimes have leading zeroes or are sometimes a combination of numbers and "e". If I open the file, Excel drops the leading zeroes and interprets the e as scientific notation. However, if I open the .CSV file in word and save it as a .TXT file, I can then specify that the column with CUSIPS is text when I open it in Excel. Hence, why I'd like to save the .CSV file as a .TXT file without opening it using some VBA code.
Thanks!
I download .csv files with CUSIPs. The cusips are nine characters and sometimes have leading zeroes or are sometimes a combination of numbers and "e". If I open the file, Excel drops the leading zeroes and interprets the e as scientific notation. However, if I open the .CSV file in word and save it as a .TXT file, I can then specify that the column with CUSIPS is text when I open it in Excel. Hence, why I'd like to save the .CSV file as a .TXT file without opening it using some VBA code.
Thanks!