If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
Excel 2007- Save tabs as CSV
Hi guys, i'm working with Excel 2007, and i need to save a workbook
with about 15-20 TABS into CSV files, meaning: every tab to a new CSV file. I've tried to search for an application but i didn't find something good enough that actually working. Can you guys please advise? Thanks, Amit Goldberg Israel |
#2
|
|||
|
|||
Excel 2007- Save tabs as CSV
Use a Macro? Maybe ask the folks in the Excel group if you get stuck.
Amit wrote: Hi guys, i'm working with Excel 2007, and i need to save a workbook with about 15-20 TABS into CSV files, meaning: every tab to a new CSV file. I've tried to search for an application but i didn't find something good enough that actually working. Can you guys please advise? Thanks, Amit Goldberg Israel |
#3
|
|||
|
|||
Excel 2007- Save tabs as CSV
Hi Amit,
Try the following macro: Sub SaveAllSheets2CSV() Dim wsSheet As Worksheet With ActiveWorkbook For Each wsSheet In .Worksheets wsSheet.SaveAs Filename:=.Path & "\" & wsSheet.Name, FileFormat:=xlCSV, AddtoMRU:=False Next wsSheet End With End Sub Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Amit" wrote in message ... Hi guys, i'm working with Excel 2007, and i need to save a workbook with about 15-20 TABS into CSV files, meaning: every tab to a new CSV file. I've tried to search for an application but i didn't find something good enough that actually working. Can you guys please advise? Thanks, Amit Goldberg Israel |
#4
|
|||
|
|||
Excel 2007- Save tabs as CSV
Hey,
Thanks for the VB code, but can you please guide where i should put the target folder? Because it gives me an error now... Thanks again, Amit. |
#5
|
|||
|
|||
Excel 2007- Save tabs as CSV
Hi Amit,
The macro is coded to automatically put the CSV files into the same folder as the workbook was opened from. The only way I can induce an error is if the Excel workbook is a new one that hasn't ever been saved, or if the workbook is in a read-only folder. If you want to use another folder, change '.Path' to the folder name, or use a find_folder routine to let the user choose a folder. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Amit" wrote in message ... Hey, Thanks for the VB code, but can you please guide where i should put the target folder? Because it gives me an error now... Thanks again, Amit. |
Thread Tools | |
Display Modes | |
|
|