LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Exporting columns in excel file to csv format

This logical line:

NewWB.SaveAs Filename:=RefPage.Cells(5, colcount).Value & ".csv", _
FileFormat:=xlCSV, CreateBackup:=False

Says to save it using the string found in row 5 of the column being processed.

So what's in row 5 of each column?

If you're not sure, you could add this line:

msgbox newwb.fullname

right after that saveAs line.





excelguru wrote:

Thank-you for the macro.But where are the csv files getting writen.I
tried searching for them in the complete C drive.could not find them.

Is it possible to write the csv files in the same directory where the
excel sheet is located.

Thanks a lot

excelguru.

--
excelguru
------------------------------------------------------------------------
excelguru's Profile: http://www.excelforum.com/member.php...fo&userid=8826
View this thread: http://www.excelforum.com/showthread...hreadid=273634


--

Dave Peterson

 
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
How do I save excel file in text format without columns? Tuuti Excel Discussion (Misc queries) 1 July 15th 08 06:40 PM
Exporting to a txt file in a certain format. johnfli Excel Discussion (Misc queries) 5 December 28th 04 06:09 PM
Exporting columns in excel file to csv format excelguru Excel Programming 1 October 29th 04 05:46 PM
Exporting Excel output to pdf/rtf/doc format Simon Lenn Excel Programming 1 December 8th 03 03:11 PM
Exporting to Excel, Then Formatting Columns/Cells Matt[_20_] Excel Programming 1 October 30th 03 12:36 AM


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