Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VB Method to copy and save only one sheet of the active workbook

How can I copy and save only one sheet of the active workbook.

This method copies the whole workbook and I only need to copy and save one
of the sheets:
ActiveWorkbook.SaveCopyAs

Thank you.
Diana
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default VB Method to copy and save only one sheet of the active workbook

Rock,

Sub save_sheet_to_new_workbook()

'copies it to a new workbook
ThisWorkbook.Worksheets(1).Copy
'the new workbook is now active
ActiveWorkbook.SaveAs "saved copy"

End Sub

hth,

Doug

"Rock*" wrote in message
...
How can I copy and save only one sheet of the active workbook.

This method copies the whole workbook and I only need to copy and save one
of the sheets:
ActiveWorkbook.SaveCopyAs

Thank you.
Diana



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default VB Method to copy and save only one sheet of the active workbo

Excellent! Doug thank you for your help and time.

--
Diana


"Doug Glancy" wrote:

Rock,

Sub save_sheet_to_new_workbook()

'copies it to a new workbook
ThisWorkbook.Worksheets(1).Copy
'the new workbook is now active
ActiveWorkbook.SaveAs "saved copy"

End Sub

hth,

Doug

"Rock*" wrote in message
...
How can I copy and save only one sheet of the active workbook.

This method copies the whole workbook and I only need to copy and save one
of the sheets:
ActiveWorkbook.SaveCopyAs

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
copy value from active sheet to another workbook sak New Users to Excel 2 June 19th 09 10:52 AM
How to save a workbook to an active Web Page? Nadia Excel Discussion (Misc queries) 0 May 2nd 08 06:23 PM
Save active sheet into new workbook MarkN Excel Programming 3 August 22nd 07 09:00 PM
Copy from active sheet and paste into new sheet using info from cell in active Ingve Excel Programming 3 January 23rd 06 09:57 PM
How save active workbook w/o knowing name John Excel Programming 3 January 20th 06 12:16 AM


All times are GMT +1. The time now is 06:23 AM.

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

About Us

"It's about Microsoft Excel"