Hi,
Ok I figured out how to do this but it really seems to be a hack, code below:
Excel. Workbook externalWorkbook = this.Application.Workbooks.Open(aFinder.FileName, 0, true, missing, missing, missing, true, missing, missing, missing, missing, missing, missing, missing, missing);
Excel. Sheets sheets = externalWorkbook.Sheets;
Excel. Worksheet aSheet = sheets.get_Item(1) as Excel.Worksheet;
aSheet.Copy( Globals.Sheet1.InnerObject, missing);
externalWorkbook.Close(missing, missing, missing);
Now why can't I just open it up and say merge into this workbook I really do not know. Oh well.
blair |