Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can i copy all sheets in a workbook to their own
workbook with the name of the sheet as the new name of the workbook? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Ed,
How can i copy all sheets in a workbook to their own workbook with the name of the sheet as the new name of the workbook? Option Explicit Sub SaveAsSheet() Dim oSh As Worksheet Dim sPath As String sPath = "c:\data\" For Each oSh In ThisWorkbook.Worksheets oSh.Copy ActiveWorkbook.SaveAs sPath & oSh.Name ActiveWorkbook.Close Next End Sub Regards, Jan Karel Pieterse Excel MVP www.jkp-ads.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
Sub test() Application.ScreenUpdating = False For a = 1 To Sheets.Count Sheets(a).Copy ActiveWorkbook.SaveAs Sheets(1).Name ActiveWorkbook.Close Next a Application.ScreenUpdating = True End Sub -- Regards Ron de Bruin (Win XP Pro SP-1 XL2000-2003) www.rondebruin.nl "Ed" wrote in message ... How can i copy all sheets in a workbook to their own workbook with the name of the sheet as the new name of the workbook? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet cells into differnt workbook/sheet, How? | Excel Discussion (Misc queries) | |||
can I make a specified sheet as startup sheet in a workbook? | Excel Discussion (Misc queries) | |||
Link individual sheet to one sheet in another workbook | Excel Discussion (Misc queries) | |||
Select sheet tabs in workbook & save to separate workbook files | Excel Worksheet Functions | |||
Use Sheet CodeNames to Select Sheet in Different Workbook | Excel Discussion (Misc queries) |