Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a file with about 25 tabs (sheets) in it, but I want to save each tab
as a separate file & name the file the tab name. Is there a way to do this automatically, or will I have to manually move each sheet into a new file & save it? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi becaboo77
Try this macro http://www.rondebruin.nl/copy6.htm -- Regards Ron de Bruin http://www.rondebruin.nl "becaboo77" wrote in message ... I have a file with about 25 tabs (sheets) in it, but I want to save each tab as a separate file & name the file the tab name. Is there a way to do this automatically, or will I have to manually move each sheet into a new file & save it? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this, boo: http://vbaexpress.com/kb/getarticle.php?kb_id=448
************ Hope it helps! Anne Troy www.OfficeArticles.com "becaboo77" wrote in message ... I have a file with about 25 tabs (sheets) in it, but I want to save each tab as a separate file & name the file the tab name. Is there a way to do this automatically, or will I have to manually move each sheet into a new file & save it? |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Option Explicit
Sub testme() Dim wks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Copy 'to a new workbook With ActiveSheet .Parent.SaveAs Filename:="C:\temp\" & .Name .Parent.Close savechanges:=False End With Next wks End Sub Adjust the path to what you want. becaboo77 wrote: I have a file with about 25 tabs (sheets) in it, but I want to save each tab as a separate file & name the file the tab name. Is there a way to do this automatically, or will I have to manually move each sheet into a new file & save it? -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub SheetsToSepBooks()
Set shOrig = Sheets(1).name For Each sh In ActriveWorkbook.Worksheets sh.Copy ActiveWorkbok.SaveAs FileName:= "C:\Samples\" & sh.name & ".xls" ActiveWorkbook.Close Next sh shOrig.Activate End Sub HTH "becaboo77" wrote: I have a file with about 25 tabs (sheets) in it, but I want to save each tab as a separate file & name the file the tab name. Is there a way to do this automatically, or will I have to manually move each sheet into a new file & save it? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
repost; Automatically updating formulae in multiple sheets | Excel Discussion (Misc queries) | |||
pulling info from multiple sheets | Excel Discussion (Misc queries) | |||
Autofilter Lists across Multiple Sheets, Maintain Correct Referenc | Excel Worksheet Functions | |||
How can I merge multiple sheets from different Excel files workbo. | Excel Worksheet Functions | |||
Can I unhide multiple sheets at once? | Excel Discussion (Misc queries) |