Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 709
Default Consolidated Workbook

Good morning Excel people!

I have a workbook with 40 seperate worksheets. I would like to break this
up into 40 seperate workbooks. Is there a simple way to do this other than
having to move each ss one at a time.

Thanks for your help.
Rich
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Consolidated Workbook

the following code allows you to select a Folder and then saves each
worksheet in the folder using the sheetname as the new workbook name.


Sub split_book()

Set objShell = CreateObject("Shell.Application")
On Error Resume Next
Set objFolder = objShell.BrowseForFolder(&H0&, "Select Folder ", &H1&)
If Not objFolder Is Nothing Then
Set oFolderItem = objFolder.Items.Item
Folder = oFolderItem.Path

For Each sht In ThisWorkbook.Sheets

sht.Copy
ActiveWorkbook.SaveAs Filename:=Folder & "\" & sht.Name
ActiveWorkbook.Close
Next sht
End If
End Sub

"Richard" wrote:

Good morning Excel people!

I have a workbook with 40 seperate worksheets. I would like to break this
up into 40 seperate workbooks. Is there a simple way to do this other than
having to move each ss one at a time.

Thanks for your help.
Rich

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default Consolidated Workbook

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

--

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


"Richard" wrote in message ...
Good morning Excel people!

I have a workbook with 40 seperate worksheets. I would like to break this
up into 40 seperate workbooks. Is there a simple way to do this other than
having to move each ss one at a time.

Thanks for your help.
Rich

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
Consolidated Sheets Dana Excel Worksheet Functions 1 September 19th 07 03:16 AM
Creating Consolidated Spreadsheet... jhicker Excel Discussion (Misc queries) 3 February 20th 06 11:05 PM
Consolidated Excel Sheet RJ Excel Worksheet Functions 1 August 2nd 05 02:57 PM
Consolidated Pivot Tables Ann Shaw Excel Discussion (Misc queries) 2 April 13th 05 02:01 PM
showing the contents of a consolidated cell Ken Excel Worksheet Functions 0 January 6th 05 05:47 PM


All times are GMT +1. The time now is 06:03 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"