PDA

View Full Version : Solved: Saving single page from multiple workbook



Mike_H
02-23-2009, 03:50 AM
Hi

can any one advise please. We have a workbook that multiple worksheets and need to extract one worksheet and save it under a different name. Is this possible? I have looked all through menu's and help files but cannot seem to see it. We run Excel 2003

Cheers

Mike

Bob Phillips
02-23-2009, 03:55 AM
Sub SaveSheet()

Worksheets("Sheet1").Copy
ActiveWorkbook.SaveAs Filename:="C:\dirname\mybook.xls"
ActiveWorkbook.Close
End Sub

Mike_H
02-23-2009, 05:40 AM
Hi XLD Thanks for this Where to I copy this to?

Bob Phillips
02-23-2009, 06:17 AM
I can't say,I don't know enough about your application.

Mike_H
02-23-2009, 06:35 AM
it's ok I have sorted it, I wasn't sure where the code went. Thanks for your help

Mike