Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to do this?

Please open an excel application go to file menu then new. There will be the
action pane with the blank workbook and from existing workbook. then click
blank workbook. Then a new excel instance window will pop up. How can I do
the same behavior using C# language?

thank you


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default how to do this?

Hi

We can automation Excel.
The code line below will create two new workbooks.

Excel.Application exApp = new Excel.ApplicationClass();
exApp.Visible = true;
exApp.Workbooks.Add(Missing.Value);
exApp.Workbooks.Add(Missing.Value);

Here is a KB article about how to automation Excel in C# for your reference.
302084 How To Automate Microsoft Excel from Microsoft Visual C# .NET
http://support.microsoft.com/?id=302084

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Reply
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



All times are GMT +1. The time now is 09:27 AM.

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

About Us

"It's about Microsoft Excel"