View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Don Guillett Don Guillett is offline
external usenet poster
 
Posts: 10,124
Default Method Add of object Sheet failed

Recorded
Sub Macro7()
'
' Macro7 Macro
' Macro recorded 7/8/2006 by Don Guillett
'

'
Workbooks.Open filename:="C:\yourfolder\yourfilename.xls"
Sheets("Sheet2").Select
Sheets("Sheet2").Move' you might prefer .copy
ActiveWorkbook.SaveAs filename:="C:\yourfolder\newbooks.xls",
FileFormat:= _
xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False _
, CreateBackup:=False
ActiveWindow.Close
End Sub


--
Don Guillett
SalesAid Software

"JonMitsu" wrote in
message ...

I try to do:

1. Open workbook MyBook.xls in My Activeworkbook.
Do changes in new sheet.
2. Save New Sheet in File MyBooks.xls

Sorry but my english speak is Zero:) i can't say that i want.


--
JonMitsu
------------------------------------------------------------------------
JonMitsu's Profile:
http://www.excelforum.com/member.php...o&userid=36188
View this thread: http://www.excelforum.com/showthread...hreadid=559622