LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 896
Default Code to split Worksheets into seperat workbooks

....then you might close your original file without saving...


On 25 Mar, 23:55, Phil Smith wrote:
This takes my current workbook, converts all of the sheets to thier
values. *My original workbook needs to remain intact with thier links.

It does tell me how to accomplish some of my goal though.

Thanx



Jarek Kujawa wrote:
"to take a workbook with a dozen worksheets, and create 12 seperate
worksheets"?


you mean "create 12 seperate WORKBOOKS"? 1 worksheet in each of them?


Sub Separate
Dim ws as Worksheet


Sheets.Add
ActiveSheet.Name = "test"


For Each ws in Activeworkbook.Worksheets
If ws.Name < "test" Then
With Range(Cells(1,1), ActiveCell.SpecialCells(xlLastCell))
.Copy
.PasteSpecial Paste:=xlPasteValues
End With
ws.Move
End If
Next ws


End Sub


On 25 Mar, 17:58, Phil Smith wrote:


It would take me forever to figure out how to code this myself. *What I
want is to take a workbook with a dozen worksheets, and create 12
seperate worksheets, filled with the formatting and the values, (similar
to a paste special values only) of each worksheet.


I need the values only because I am using a lot of links to create the
worksheets.


Can anyone point me to some code I can hack up?


Thanx


Phil- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


 
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
Answer to Saving worksheets as individual workbooks using code? H.A. de Wilde[_5_] Excel Programming 1 May 4th 06 05:34 PM
Split email address into seperat columns mg_sv_r Excel Worksheet Functions 1 January 9th 06 11:56 AM
Can I split worksheets from one workbook into individual workbooks Rosana Excel Discussion (Misc queries) 0 September 19th 05 08:03 PM
Change code to make worksheets instead of workbooks mikeb1[_4_] Excel Programming 3 December 15th 03 03:23 PM
VBA code for looping through open workbooks and worksheets Jamie Martin[_2_] Excel Programming 1 July 24th 03 06:44 PM


All times are GMT +1. The time now is 06:17 PM.

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"