Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,758
Default Saving file with text and csv

You could write your own exporter. 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

(or maybe you could build your own formula and copy|paste into Notepad.)

In G1:
=a1
In G2:
=a2&","&b2&","&c2&","&d2&","&e2&","&f2
then drag down.

You may need to insert additional quotes or formatting:

=a2&","&text(b2,"mm/dd/yyyy")&....



ron wrote:

Hello,
I'm trying to use a macro that will save my files with the first row as a
text label and succeeding rows as msdos.csv.
The first row only contains text in cell A1, describing the files content.
The file uses six columns.
When I save the file as msdos.csv only I end up with a comma for each unused
cell in row 1 and I have to then open the file in a text editor and remove
the extra commas in row one, before the file can be imported into the next
application.
As always any help is appreciated.

Thanks
Ron Lea


--

Dave Peterson
  #2   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 2
Default Saving file with text and csv

Hello,
I'm trying to use a macro that will save my files with the first row as a
text label and succeeding rows as msdos.csv.
The first row only contains text in cell A1, describing the files content.
The file uses six columns.
When I save the file as msdos.csv only I end up with a comma for each unused
cell in row 1 and I have to then open the file in a text editor and remove
the extra commas in row one, before the file can be imported into the next
application.
As always any help is appreciated.

Thanks
Ron Lea


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
Saving Text File Olan Gotcher Excel Discussion (Misc queries) 1 July 15th 06 10:20 PM
Text file saving, setting file origin mauddib Excel Discussion (Misc queries) 0 May 25th 06 02:50 PM
saving an excel file as text without text in quotes John Excel Discussion (Misc queries) 2 December 6th 05 06:20 PM
Issues with saving text file Shane Malden Excel Worksheet Functions 0 October 25th 05 04:37 PM
Saving as a csv file with text qualifiers Rajendra Pai Excel Discussion (Misc queries) 2 January 18th 05 07:45 PM


All times are GMT +1. The time now is 01:06 AM.

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

About Us

"It's about Microsoft Excel"