Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Copy specific Sheets and save them as a workbook

Is there a method that will allow me to copy specific sheets (lets say sheet1
and sheet2) from my current workbook and save them as a seperate file. The
method below lets me copy only one sheet.

ThisWorkbook.Worksheets(1).Copy
ActiveWorkbook.SaveAs "New File"

Thank you.
Diana
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Copy specific Sheets and save them as a workbook

Use

Sheets(Array("Sheet1", "Sheet2")).Copy


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Rock*" wrote in message ...
Is there a method that will allow me to copy specific sheets (lets say sheet1
and sheet2) from my current workbook and save them as a seperate file. The
method below lets me copy only one sheet.

ThisWorkbook.Worksheets(1).Copy
ActiveWorkbook.SaveAs "New File"

Thank you.
Diana



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Copy specific Sheets and save them as a workbook

Thanks. I actually tried this before I wrote my question and for some reason
didnt' work....(let me guess I mistyped something:)

Thank you again for your time and help
--
Diana


"Ron de Bruin" wrote:

Use

Sheets(Array("Sheet1", "Sheet2")).Copy


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Rock*" wrote in message ...
Is there a method that will allow me to copy specific sheets (lets say sheet1
and sheet2) from my current workbook and save them as a seperate file. The
method below lets me copy only one sheet.

ThisWorkbook.Worksheets(1).Copy
ActiveWorkbook.SaveAs "New File"

Thank you.
Diana




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to save only a specific sheet within a workbook ali1h Excel Worksheet Functions 4 January 15th 08 05:30 PM
Copy cells to specific sheets Double R Excel Worksheet Functions 3 July 31st 07 12:07 AM
Copy Data from Workbook into specific Worksheet in other Workbook? kingdt Excel Discussion (Misc queries) 1 March 16th 06 06:55 PM
copy 3 sheets & save them into new workbook shital Excel Programming 1 October 21st 03 01:04 AM
copy 3 sheets & save them into new workbook shital Excel Programming 1 October 17th 03 12:22 PM


All times are GMT +1. The time now is 07:37 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"