Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Please help.
I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try Ron's:
http://www.rondebruin.nl/copy6.htm -- Max Singapore http://savefile.com/projects/236895 xdemechanik --- "Positive" wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You could run a macro.
Sub Make_New_Books() Dim w As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In ActiveWorkbook.Worksheets w.Copy ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name ActiveWorkbook.Close Next w Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Mon, 06 Aug 2007 14:26:13 -0000, Positive wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Aug 6, 4:30 pm, Gord Dibben <gorddibbATshawDOTca wrote:
You could run a macro. Sub Make_New_Books() Dim w As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In ActiveWorkbook.Worksheets w.Copy ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name ActiveWorkbook.Close Next w Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Mon, 06 Aug 2007 14:26:13 -0000, Positive wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan- Hide quoted text - - Show quoted text - Guys, Thank you so much but I have never used MACRO before; therefore what you wrote is pretty advanced and foreign to me. Can you pls give me some instructions which are more for MACRO beginners? Many thanks Lan |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Aug 10, 12:04 pm, Positive wrote:
On Aug 6, 4:30 pm, Gord Dibben <gorddibbATshawDOTca wrote: You could run a macro. Sub Make_New_Books() Dim w As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In ActiveWorkbook.Worksheets w.Copy ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name ActiveWorkbook.Close Next w Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Mon, 06 Aug 2007 14:26:13 -0000, Positive wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan- Hide quoted text - - Show quoted text - Guys, Thank you so much but I have never used MACRO before; therefore what you wrote is pretty advanced and foreign to me. Can you pls give me some instructions which are more for MACRO beginners? Many thanks Lan- Hide quoted text - - Show quoted text - Awesome! Now i figure it out and it does work. Thank you so much for your help Lan |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Positive" wrote in message oups.com... On Aug 10, 12:04 pm, Positive wrote: On Aug 6, 4:30 pm, Gord Dibben <gorddibbATshawDOTca wrote: You could run a macro. Sub Make_New_Books() Dim w As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In ActiveWorkbook.Worksheets w.Copy ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name ActiveWorkbook.Close Next w Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Mon, 06 Aug 2007 14:26:13 -0000, Positive wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan- Hide quoted text - - Show quoted text - Guys, Thank you so much but I have never used MACRO before; therefore what you wrote is pretty advanced and foreign to me. Can you pls give me some instructions which are more for MACRO beginners? Many thanks Lan- Hide quoted text - - Show quoted text - Awesome! Now i figure it out and it does work. Thank you so much for your help Lan This has actually helped me as well, thank you. However, I was wondering how could you change that so the "copied" worksheets save as *.csv files? |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() "Mr BT" wrote in message news:9Ipvi.51008$_d2.4000@pd7urf3no... "Positive" wrote in message oups.com... On Aug 10, 12:04 pm, Positive wrote: On Aug 6, 4:30 pm, Gord Dibben <gorddibbATshawDOTca wrote: You could run a macro. Sub Make_New_Books() Dim w As Worksheet Application.ScreenUpdating = False Application.DisplayAlerts = False For Each w In ActiveWorkbook.Worksheets w.Copy ActiveWorkbook.SaveAs FileName:=ThisWorkbook.Path & "\" & w.Name ActiveWorkbook.Close Next w Application.DisplayAlerts = True Application.ScreenUpdating = True End Sub Gord Dibben MS Excel MVP On Mon, 06 Aug 2007 14:26:13 -0000, Positive wrote: Please help. I have a workbook of about 100 worhsheets. How do I detach these 100 worksheets into 100 DIFFERENT WORKBOOKS without copy/paste and save manually every single sheet so that they can be 100 independent excel workbooks. Many thanks Lan- Hide quoted text - - Show quoted text - Guys, Thank you so much but I have never used MACRO before; therefore what you wrote is pretty advanced and foreign to me. Can you pls give me some instructions which are more for MACRO beginners? Many thanks Lan- Hide quoted text - - Show quoted text - Awesome! Now i figure it out and it does work. Thank you so much for your help Lan This has actually helped me as well, thank you. However, I was wondering how could you change that so the "copied" worksheets save as *.csv files? I figured it out. I added something to the end of the saveas line ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\" & w.Name, FileFormat:=xlCSV, CreateBackup:=False |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Good to hear.
Gord On Sat, 11 Aug 2007 21:45:35 GMT, "Mr BT" wrote: I figured it out. I added something to the end of the saveas line ActiveWorkbook.SaveAs Filename:=ThisWorkbook.Path & "\" & w.Name, FileFormat:=xlCSV, CreateBackup:=False |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 Workbooks and 6 Worksheets - Need to Populate 1 Workbook | Excel Worksheet Functions | |||
Combine multiple workbooks into 1 workbook w/ multiple worksheets | Excel Discussion (Misc queries) | |||
Can I split worksheets from one workbook into individual workbooks | Excel Discussion (Misc queries) | |||
Can I tile worksheets within a workbook, like one tiles workbooks. | Excel Discussion (Misc queries) | |||
Copying Several Workbooks into one Workbook as Worksheets | New Users to Excel |