Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
from a VBA code I am trying to copy Sheet1 from book1 to book2. I use the following code: '****** Start Code ************* Dim ExcelApp As New Excel.Application Dim ExcelAppx As New Excel.Application ExcelApp.Workbooks.Open "D:\book2.xls", False, False ExcelAppx.Workbooks.Open "D:\book1.xls", False, False ExcelAppx.Visible = True ExcelApp.Visible = True ExcelAppx.Sheets("Gulf").Copy after:=ExcelApp.Sheets(1) '****** End Code ************* when I run the above code I get the following error: Run-Time error '1004' copy method of worksheet class failed Any good suggestions Khaled Eid |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet cells into differnt workbook/sheet, How? | Excel Discussion (Misc queries) | |||
copy from one sheet to another workbook | Excel Discussion (Misc queries) | |||
Copy sheet to different workbook | Excel Discussion (Misc queries) | |||
automatic copy and paste from sheet to sheet in a workbook | Excel Programming | |||
Copy sheet from one workbook to another workbook problem | Excel Programming |