Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default breakup spreadsheets


Is there a way to take a workbook and copy each worksheet to its ow
workbook.

IE: Workbook 1: Sheet A, Sheet B and Sheet C

Would like:
Workbook 2: A copy of 'Sheet A'
Workbook 3: A copy of 'Sheet B'
Workbook 4: A copy of 'Sheet C'

Thanks :-)

Hillar

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default breakup spreadsheets

Try this which will leave them all open for you.

Sub saveeachwb()
For Each ws In Worksheets
ws.Copy
ActiveWorkbook.SaveCopyAs "c:\personal" & ws.Name
Next
End Sub

--
Don Guillett
SalesAid Software

"hef" wrote in message
...

Is there a way to take a workbook and copy each worksheet to its own
workbook.

IE: Workbook 1: Sheet A, Sheet B and Sheet C

Would like:
Workbook 2: A copy of 'Sheet A'
Workbook 3: A copy of 'Sheet B'
Workbook 4: A copy of 'Sheet C'

Thanks :-)

Hillary


------------------------------------------------
~~ Message posted from
http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default breakup spreadsheets


I am able to get the routine to work. Thanks...

Problem is: the file won't save with the proper name.

I run it and I end up with

'Book1' instead of 'test1'

What now?

Also, is there a way to do below and close the copied workbook once th
copy has been made

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default breakup spreadsheets


Never mind...I figured it out :-)

Thanks so much for your help. I can't tell you guys how much thi
forum has helped me out.

Hillar

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

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
Range Breakup trans Excel Discussion (Misc queries) 9 November 30th 07 10:41 PM
how do i remove page breakup lines in the worksheet ? manish Excel Discussion (Misc queries) 5 June 21st 07 11:44 PM
How to Breakup text in to two parts ina cell ramana Excel Worksheet Functions 4 November 30th 05 05:53 AM
I need to breakup an address in a cell............... Tony Excel Discussion (Misc queries) 5 September 1st 05 08:04 PM
breakup spreadsheets hef[_6_] Excel Programming 0 November 24th 03 03:35 PM


All times are GMT +1. The time now is 04:44 PM.

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

About Us

"It's about Microsoft Excel"