saving as .CSV file

  • Thread starter Thread starter Bob T.
  • Start date Start date
B

Bob T.

I would like to save a multi-worksheet spreadsheet
to .CSV format. It appears that I have to save each
worksheet as csv format individually. Is there a way to
do it all at once?

Thanks!
 
Hi Bob

If you want to use a macro it is easier but not all at once.
If you want a macro example post back
 
And if you don't want to wait <bg>:

This might give you something to start with:

Option Explicit
Sub testme()

Dim wks As Worksheet
Dim newWks As Worksheet

For Each wks In ActiveWorkbook.Worksheets
wks.Copy 'copies to a new workbook
With ActiveSheet
.Parent.SaveAs Filename:="C:\WINDOWS\TEMP\" & .Name, _
FileFormat:=xlCSV
.Parent.Close savechanges:=False
End With
Next wks

End Sub

(adjust the path)


If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
 

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