Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default export sheets to multiple new files

I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default export sheets to multiple new files

Hi Tanya

Try this code example
http://www.rondebruin.nl/copy6.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Tanya" wrote in message ...
I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default export sheets to multiple new files

Worked exactly as I hoped. Thanks for the hours you've saved me! You make
this look so easy! --Tanya

"Ron de Bruin" wrote:

Hi Tanya

Try this code example
http://www.rondebruin.nl/copy6.htm

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Tanya" wrote in message ...
I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default export sheets to multiple new files

An exact answer to your question! See Ron's site:

http://www.rondebruin.nl/copy6.htm
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Tanya" wrote:

I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default export sheets to multiple new files

Sub Make_New_Books()
Dim w As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In ActiveWorkbook.Worksheets
w.Copy
With ActiveWorkbook
.SaveAs FileName:=ActiveWorkbook.Path _
& "\" & w.Name & ".xlsx" 'change to .xls if not 2007 version
.Close
End With
Next w
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Mon, 20 Apr 2009 12:37:03 -0700, Tanya
wrote:

I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default export sheets to multiple new files

Look out Gord

If your default Save format in 2007 is not xlsx this will not work

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
Sub Make_New_Books()
Dim w As Worksheet
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each w In ActiveWorkbook.Worksheets
w.Copy
With ActiveWorkbook
.SaveAs FileName:=ActiveWorkbook.Path _
& "\" & w.Name & ".xlsx" 'change to .xls if not 2007 version
.Close
End With
Next w
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub


Gord Dibben MS Excel MVP

On Mon, 20 Apr 2009 12:37:03 -0700, Tanya
wrote:

I have a workbook with several worksheets (30) and am trying to find a way to
save each worksheet in the book as a new excel file using the name of the
worksheet as the new file name...I use the move or copy regularly, but was
hoping to avoid having to type the names for each worksheet inorder to save
them?

Thanks for your help!

Tanya


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default export sheets to multiple new files

Thanks for the tip Ron

Still trying to get used to 2007.


Gord

On Mon, 20 Apr 2009 22:13:48 +0200, "Ron de Bruin"
wrote:

Look out Gord

If your default Save format in 2007 is not xlsx this will not work


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default export sheets to multiple new files

Hi Gord

I have it set a xlsm because most of my files have code
And a lot of people have it set to 97-2003

For others here you can change it in 2007 if you want
Office ButtonExcel Options...Save
Change "Save files in this format .............."


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm




"Gord Dibben" <gorddibbATshawDOTca wrote in message ...
Thanks for the tip Ron

Still trying to get used to 2007.


Gord

On Mon, 20 Apr 2009 22:13:48 +0200, "Ron de Bruin"
wrote:

Look out Gord

If your default Save format in 2007 is not xlsx this will not work


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default export sheets to multiple new files

BTW

I checked your site to see what changes would have to be made.

http://www.rondebruin.nl/copy6.htm

Good work....................thanks.


Gord

On Mon, 20 Apr 2009 13:25:00 -0700, Gord Dibben <gorddibbATshawDOTca wrote:

Thanks for the tip Ron

Still trying to get used to 2007.


Gord

On Mon, 20 Apr 2009 22:13:48 +0200, "Ron de Bruin"
wrote:

Look out Gord

If your default Save format in 2007 is not xlsx this will not work


Reply
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
Export Excel data as multiple files K Excel Discussion (Misc queries) 5 October 31st 08 09:31 PM
Automated multiple text files into multiple sheets in one workbook Dr Dan Excel Discussion (Misc queries) 14 November 4th 07 11:32 AM
Saving Sheets into Multiple Files becaboo77 Excel Discussion (Misc queries) 4 February 3rd 06 06:10 PM
How do i auto create multiple files from 1 with multiple sheets Kathy Excel Worksheet Functions 0 July 26th 05 01:23 AM
Exporting multiple sheets to multiple htm files? [email protected] Excel Discussion (Misc queries) 4 April 2nd 05 01:26 PM


All times are GMT +1. The time now is 12:23 AM.

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"