Full Version: Copy and Save one sheet from Excel Workbook
UtterAccess Discussion Forums > Microsoft® Office > Microsoft Excel
aldeb
I have an excel work book with 14 sheets. I would like to be able to create a macro that would copy and save
one sheet from the workbook to another network location. Any advice on how to do this. The sheets
are named for the months so I have sheets January - December. At the end of this month I would like to save
and send the January sheet to the location I need and also give it a new name.

Thanks for all help.
dflak
This iis probably overkill, but it copies one spreadsheet to another using a third spreadsheet to control the process.

Get it here.
norie
To copy a single worksheet to a new workbook all you need is this.
CODE
Worksheets("SheetName").Copy

You can then use something like this to save it, obviously changing paths/names as required.
CODE
Set wbNew = ActiveWorkbook

With wbNew
       .SaveAs "C\:MyFolder\NewWorkbook"
       .Close
End With
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.