Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I get a sent a workbook that has around 100 worksheets in it. is it possible to export all of these worksheets out to new files with the name of each new file to be that of the worksheet? Pete. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With no validation...
Option Explicit Sub testme() Dim wks As Worksheet Dim NewWks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Copy 'to a new workbook Set NewWks = ActiveSheet With NewWks.Parent .SaveAs Filename:="C:\temp\" & NewWks.Name .Close savechanges:=False End With Next wks End Sub PeterRad wrote: Hi, I get a sent a workbook that has around 100 worksheets in it. is it possible to export all of these worksheets out to new files with the name of each new file to be that of the worksheet? Pete. -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you Very Much
that works great. Pete. Dave Peterson wrote: With no validation... Option Explicit Sub testme() Dim wks As Worksheet Dim NewWks As Worksheet For Each wks In ActiveWorkbook.Worksheets wks.Copy 'to a new workbook Set NewWks = ActiveSheet With NewWks.Parent .SaveAs Filename:="C:\temp\" & NewWks.Name .Close savechanges:=False End With Next wks End Sub PeterRad wrote: Hi, I get a sent a workbook that has around 100 worksheets in it. is it possible to export all of these worksheets out to new files with the name of each new file to be that of the worksheet? Pete. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Totals from Seperate Worksheets to One Consolidated Sheet | Excel Discussion (Misc queries) | |||
Combine worksheets from different excel files into one excel file | Excel Discussion (Misc queries) | |||
combine multiple worksheets & files into 1 | Excel Worksheet Functions | |||
Excel 2000 worksheets save incorrectly as notepad files. | Excel Discussion (Misc queries) | |||
How do I link 2 worksheets in different files? | Excel Worksheet Functions |