LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default HOW TO: CONVERT CSV DELIMITED FILES TO XLS

See Chip Pearson's site for code that will read in a CSV file - you can
specify the delimiter:

http://www.cpearson.com/excel/imptext.htm import/export text files

You can loop through a directory with

sName = dir("C:\Myfiles\*.csv")
do while sName < ""
' call chips routine to open the file
' save the a file as xls
sName = Dir()
Loop



--
Regards,
Tom Ogilvy

"BHARATH RAJAMANI" wrote in
message ...
Can someone guide me how to write a macro that Loops through 'N' .CSV

files
in a desktop folder and saves them as .XLS files. It is important to
recognize the comma delimiter and throw the comma-separated individual

values
in different cells. If I use a normalExcel fileproperty then my xls file

has
all values in column A only.


TIA

Regards,

--
Manager, International Private Banking, International Banking Group, ICICI
Bank
East Wing 8th floor South, ICICI Towers, Bandra Kurla Complex, Mumbai

India
400051



 
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
space delimited files now tab delimited Sunny Scripter Excel Discussion (Misc queries) 0 March 31st 08 12:39 AM
How can I convert tab delimited files to pipe delimited? Jeremy Town Excel Discussion (Misc queries) 2 November 15th 07 04:29 PM
tab delimited file convert to columns 1coach9 Excel Discussion (Misc queries) 1 April 18th 06 04:19 PM
How do I import/convert tab delimited text files into Excel? jim Excel Worksheet Functions 10 May 3rd 05 10:46 PM
tab delimited files Brad Excel Worksheet Functions 3 January 21st 05 05:27 PM


All times are GMT +1. The time now is 04:29 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"