#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SaveAs,csv


Hi,
I am using excel97 to save an excel file to csv. When I use
File/SaveAs/toto.csv, I obtain a file with a semicolon (";") delimiter
which is the goal. But, I want to use a macro in vba to do so. This
time, with the saveAs function, I obtain a record with a comma delimiter
(","). I would like to know the reason for excel to give a semicolon
delimiter when I save the file with menu File/SaveAs/toto.csv and on
doing this action, when I save the macro and re use it in vba code, I
get a comma delimiter !!!!
I have tried this with excel2000 and in both cases, I obtain a semicolon
delimiter. Is it an excel configuration to be done ? Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default SaveAs,csv

VBA is US Centric. I believe you have more control in xl2002 and later, but
that doesn't help you.

Chip Pearson has written code to write a CSV file with a specified
delimiter. (code for both import and export)
http://www.cpearson.com/excel/imptext.htm

--
Regards,
Tom Ogilvy


"popo pop" wrote in message
...

Hi,
I am using excel97 to save an excel file to csv. When I use
File/SaveAs/toto.csv, I obtain a file with a semicolon (";") delimiter
which is the goal. But, I want to use a macro in vba to do so. This
time, with the saveAs function, I obtain a record with a comma delimiter
(","). I would like to know the reason for excel to give a semicolon
delimiter when I save the file with menu File/SaveAs/toto.csv and on
doing this action, when I save the macro and re use it in vba code, I
get a comma delimiter !!!!
I have tried this with excel2000 and in both cases, I obtain a semicolon
delimiter. Is it an excel configuration to be done ? Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SaveAs,csv



Hi Tom,
I thank you very much for your help.
Hope to hear from you on the forum
Bye

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using SaveAs SarahN Excel Discussion (Misc queries) 3 May 14th 10 04:26 AM
SaveAs - VBA Jae[_3_] Excel Discussion (Misc queries) 4 April 10th 08 08:10 PM
SaveAs - VBA Jae Excel Discussion (Misc queries) 0 April 10th 08 06:04 AM
VBA SaveAs Value charlie Excel Discussion (Misc queries) 4 August 27th 07 11:33 PM
SaveAs Stan Halls Excel Worksheet Functions 5 November 28th 06 07:51 PM


All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"