LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copying worksheets across workbooks

Hi - I'm trying to copy a work sheet from a excel file to another excel file
using C#. The code I use is as follows:

---

((Microsoft.Office.Interop.Excel.Worksheet)(dataAp p.ActiveWorkbook.Sheets[1]
)).Copy( excelApp.ActiveWorkbook.Sheets[10],
System.Reflection.Missing.Value );

---

dataApp is the ExcelApplicationClass that I use to open the excel sheet that
has the data and excelApp has my target workbook.

I get the following error on Executing the code.

"Exception from HRESULT: 0x800A03EC"

Any help in this regard will be useful!

Thanks,

Bala


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Worksheets From Different Workbooks using Marco Max2073 Excel Worksheet Functions 4 September 14th 09 04:21 PM
I get an error message while copying worksheets between workbooks CRACARCONSTRUCTION Excel Discussion (Misc queries) 1 February 16th 09 09:56 PM
Copying worksheets with formulae between workbooks Paul Excel Discussion (Misc queries) 1 May 14th 08 03:40 PM
Copying Formats between workbooks and worksheets geoff_francis_cox Excel Discussion (Misc queries) 3 July 3rd 05 11:22 PM
Copying Several Workbooks into one Workbook as Worksheets Blue_Crystal New Users to Excel 1 May 26th 05 02:19 PM


All times are GMT +1. The time now is 12:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"