export XLS to CSV with particular delimiter

A

Alain R.

Hi,

I would like to know how can i export content of XLS file to CSV
specifying the delimiter will not be "," (comma) but ";"(semicolon) ?

thanks a lot,

Al.
 
D

Dave Peterson

You can change your windows list separator to a semicolon.

Go to windows control panel, regional and language options|Regional options tab
then click customize and look for List separator on the Numbers tab.

I'd change it back when you're done--it's a windows setting and you may not like
it as your default.

Another option would be to use a macro.

You could use a macro and write code and have complete control over what you
write.

Here are three sites that you could steal some code from:

Earl Kiosterud's Text Write program:
www.smokeylake.com/excel
(or directly: http://www.smokeylake.com/excel/text_write_program.htm)

Chip Pearson's:
http://www.cpearson.com/excel/imptext.htm

J.E. McGimpsey's:
http://www.mcgimpsey.com/excel/textfiles.html

Earl's program may work right out of the box.
 
E

Earl Kiosterud

Although folks are free to steal code from my Text Write Program, I wanted to point out that
it's a ready-to-use utility, if you want to run it that way. Fill in the blanks and run
it -- it'll write the text file from your sheet. Or you can take the whole module, plug in
your specs for how you want the text file written (from the setup sheet), and run it in your
code.
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
 
D

Dave Peterson

I tried to say that with this line:

<bg>

Earl said:
Although folks are free to steal code from my Text Write Program, I wanted to point out that
it's a ready-to-use utility, if you want to run it that way. Fill in the blanks and run
it -- it'll write the text file from your sheet. Or you can take the whole module, plug in
your specs for how you want the text file written (from the setup sheet), and run it in your
code.
--
Earl Kiosterud
www.smokeylake.com

Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
 
E

Earl Kiosterud

Dave,

So you did, so you did. I didn't notice it down there, and thought you'd stopped saying it.
Just blowing my horn! :)
 
D

Dave Peterson

It depends on how much I copy and paste <bg>.

Earl said:
Dave,

So you did, so you did. I didn't notice it down there, and thought you'd stopped saying it.
Just blowing my horn! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top