Exporting columns in excel file to csv format

  • Thread starter Thread starter excelguru
  • Start date Start date
E

excelguru

Thank-you for the macro.But where are the csv files getting writen.
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 th
excel sheet is located.

Thanks a lot

excelguru
 
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.
 

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

Back
Top