A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Office » General Discussions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel 2007- Save tabs as CSV



 
 
Thread Tools Display Modes
  #1  
Old March 11th, 2008, 11:46 AM posted to microsoft.public.office.misc
Amit
external usenet poster
 
Posts: 2
Default 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  
Old March 11th, 2008, 12:14 PM posted to microsoft.public.office.misc
Bob I
external usenet poster
 
Posts: 10,698
Default 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  
Old March 11th, 2008, 12:38 PM posted to microsoft.public.office.misc
macropod
external usenet poster
 
Posts: 1,231
Default 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  
Old March 12th, 2008, 08:20 AM posted to microsoft.public.office.misc
Amit
external usenet poster
 
Posts: 2
Default 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  
Old March 12th, 2008, 12:26 PM posted to microsoft.public.office.misc
macropod
external usenet poster
 
Posts: 1,231
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:25 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.