Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open("New.xls") Set objWorkbook1 = objExcel.Workbooks.Open("Existing.xls") objWorkbook.Worksheets(1).Copy before_ objWorkbook1.Worksheets(1) objWorkbook1.Close SaveChanges = True objWorkbook.Close There is one worksheet in New.xls which I want to copy and add to Exisiting.xls as the top tab. The above errors out and I have re-written so many times I can't remember where I started. I also wanted to name the new worksheet with the date but couldn't get syntax that would work. This is a *.vbs text file that I want to place in the task scheduler. Am using MS Office Pro 2003. I appreciate any assist. Thanks -- Jeff C Live Well .. Be Happy In All You Do |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I need some VB script please | Excel Discussion (Misc queries) | |||
Excel Throwing Circular Errors When No Errors Exist | Excel Worksheet Functions | |||
VB Script | Excel Worksheet Functions | |||
Script Errors | Excel Discussion (Misc queries) | |||
Unresolved Errors in IF Statements - Errors do not show in results | Excel Worksheet Functions |