csv file saves as tab delimited

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
nixonj
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 6:10 pm

csv file saves as tab delimited

Post by nixonj » Wed Mar 24, 2010 6:15 pm

Ihave automated the following:
Open an existing excel spreadsheet, refresh the data, save as .csv and send to another location. My problem is the .csv file is being save with a tab format instead of comma. How do I tell MS that I want the delimiter to be a comma?

gdyvig
Automation Wizard
Posts: 447
Joined: Fri Jun 27, 2008 7:57 pm
Location: Seattle, WA

Post by gdyvig » Fri Mar 26, 2010 3:00 pm

Hi nixonj,

First make sure Windows is not defining csv files to have a tab delimiter.

http://office.microsoft.com/en-us/excel ... 51033.aspx

Read the section "Change the separator in all .csv text files".


If that is not the problem, please provide the parts of your script that open excel, open the xls, and save the csv file. Then the solution can use a method compatible with the rest of your script.


Gale

nixonj
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 6:10 pm

Thanks

Post by nixonj » Fri Mar 26, 2010 3:14 pm

I found my answer and it was a simple as putting this line in the script
LET>DELIMITER=,

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts