Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a way to save just one worksheet as a new workbook
-- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
dreamer,
Right click on that sheet's tab, select "Move or Copy", select "New Book", check "Create a copy" if desired. Voila. If you run the macro recorder whilst you do that, you'll have a good idea of the code required. (Assuming you're not trying to do this with a file from a mixed language network: See the thread ""Path/File Access Error" on Sheets.Copy" below.) NickHK "dreamer " wrote in message ... Is there a way to save just one worksheet as a new workbook? --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Not directly. You could loop round and delete all the others except, and the
SaveAs. Application.DisplayAlerts = False For Each sh In Activeworkbook If sh.name < "mySheet" Then sh.Delete End If Next Sh Application.DisplayAlerts = True -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "dreamer " wrote in message ... Is there a way to save just one worksheet as a new workbook? --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() "Bob Phillips" wrote in message ... Not directly. You could loop round and delete all the others except, and the SaveAs. Activesheet.copy would appear a pretty direct means of generating a new workbook containing (only) the desired sheet. --- Regards Norman |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But that is still not directly
Bob "srgggf" <jbkjkbjn wrote in message ... "Bob Phillips" wrote in message ... Not directly. You could loop round and delete all the others except, and the SaveAs. Activesheet.copy would appear a pretty direct means of generating a new workbook containing (only) the desired sheet. --- Regards Norman |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bob,
Indeed the Activesheet.Copy command directly creates a new single-sheet workbook. I suspect that you have confused this direct creation with a subsequent (optional) save. In any event, the looping deletion of other sheets method which you suggest seems inappropiately lengthy in operation and overly verbose code. Certainly, were I dealing with (say) a 100-sheet primary workbook, I know which approach I would adopt. Just my opinion of course. --- Regards, Norman. "Bob Phillips" wrote in message ... But that is still not directly Bob "srgggf" <jbkjkbjn wrote in message ... "Bob Phillips" wrote in message ... Not directly. You could loop round and delete all the others except, and the SaveAs. Activesheet.copy would appear a pretty direct means of generating a new workbook containing (only) the desired sheet. --- Regards Norman |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I know what Activesheet.Copy does, but direct in my parlance would be
something like SaveSheetAs filename which doesn't exist. Deleting may be more lengthy, but both methods have to create the target before saving. Hence, neither is direct, so guess what, I am not confusion direct with a subsequent save. -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "srgggf" <jbkjkbjn wrote in message ... Hi Bob, Indeed the Activesheet.Copy command directly creates a new single-sheet workbook. I suspect that you have confused this direct creation with a subsequent (optional) save. In any event, the looping deletion of other sheets method which you suggest seems inappropiately lengthy in operation and overly verbose code. Certainly, were I dealing with (say) a 100-sheet primary workbook, I know which approach I would adopt. Just my opinion of course. --- Regards, Norman. "Bob Phillips" wrote in message ... But that is still not directly Bob "srgggf" <jbkjkbjn wrote in message ... "Bob Phillips" wrote in message ... Not directly. You could loop round and delete all the others except, and the SaveAs. Activesheet.copy would appear a pretty direct means of generating a new workbook containing (only) the desired sheet. --- Regards Norman |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save Worksheet as new workbook with specifics | Excel Discussion (Misc queries) | |||
Save Worksheet To Master Workbook | Excel Discussion (Misc queries) | |||
(DAVE PETERSON) - SAVE WORKSHEET AS A NEW WORKBOOK | Excel Worksheet Functions | |||
How do I save a worksheet within a workbook? | Excel Discussion (Misc queries) | |||
Save Worksheet vs Workbook | Excel Worksheet Functions |