2
24frank
Hello,
i'm searching for a method to open an existing Excel-workbook from my
C#-Application.
For open a new workbook I use this Code:
//Start Excel and get Application object.
oXL = new Excel.Application();
oXL.Visible = true;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add( Missing.Value ));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
....
Now I need an example, how I can open an existing workbook.
I hope someone can help me.
Thanks Frank.
i'm searching for a method to open an existing Excel-workbook from my
C#-Application.
For open a new workbook I use this Code:
//Start Excel and get Application object.
oXL = new Excel.Application();
oXL.Visible = true;
//Get a new workbook.
oWB = (Excel._Workbook)(oXL.Workbooks.Add( Missing.Value ));
oSheet = (Excel._Worksheet)oWB.ActiveSheet;
....
Now I need an example, how I can open an existing workbook.
I hope someone can help me.
Thanks Frank.