I have a workbook with 12 sheets, one for every
month of the year, and I want to make a macro to
save only one sheet with the name of the month,
lets say sheet "01" save as "January.xls". I
developed the following code, but it saved all the
workbook, and I want to save only sheet "01", How can I fix it?
---------------------------------
VBStart
Sub Save_Sheet
Set xlApp = CreateObject("Excel.Application")
Set xlbook =
xlApp.Workbooks.Open("E:\Temp\5421BAvan05.xls")
Set xlsheet = xlbook.Worksheets("01")
xlsheet.Select
xlsheet.Copy
xlsheet.SaveAs "E:\Temp\January.xls"
xlApp.Quit
Set xlsheet = Nothing
Set xlbook = Nothing
Set xlApp = Nothing
End Sub
VBEnd
VBRun>Save_Sheet
----------------------------
Thanks,

Salvador Hernandez