LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
guy guy is offline
external usenet poster
 
Posts: 2
Default Writing a CSV file

This is a fairly easy task but I'm struggling to find the right objects to
use.

I have a named range on a spreadsheet or around 20 columns and 10 rows and I
want to write that range out to a CSV file in a specific directory with a
specific name (I want the extension to end in .txt and not .csv).

So I'm thinking that I could loop over each row and inside that loop I would
loop over each column and then write the conents of each cell to the file
and put a "," between each value.

I'm not familiar with Excel VBA syntax so any pointers would be much
appreciated.

Thanks.


 
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
Writing to notepad file Jeff Excel Discussion (Misc queries) 2 October 23rd 06 03:16 AM
writing on an excel file RITZ New Users to Excel 3 September 2nd 06 09:44 PM
Writing to a file from excel Cesar Zapata[_2_] Excel Programming 2 October 15th 04 05:48 PM
Writing a .txt file Claus[_2_] Excel Programming 2 September 27th 04 01:47 AM
file writing Mike[_49_] Excel Programming 0 November 22nd 03 06:57 PM


All times are GMT +1. The time now is 09:06 PM.

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"