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: 3
Default Attaching to Running Process

My C# application allows the user to open a file with excel. It is
implemented like this:

Process.Start(excel.exe,FileName);

It seems to work fine, it starts Excel, which opens FileName and allows the
user to process it. The problem is that if Excel is already running, it opens
another instance of Excel, instead of adding it as another worksheet in the
existing instance, which would be faster. So I want to detect whether Excel
is running, and if it is, I want to open FileName as a new worksheet in that
instance. If anyone can suggest how to do this, I would appreciate it.

 
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
Starting excel and running it on the same process C#_Programmer[_2_] Excel Programming 0 September 14th 07 01:04 AM
Excel Process Still Running DeveloperSQL Excel Programming 4 May 24th 07 06:00 PM
How to Check if a Process is Running Chaplain Doug Excel Programming 0 May 24th 05 05:29 PM
How to count process running time ( process not finished) miao jie Excel Programming 0 January 13th 05 09:23 AM
How to count process running time ( process not finished) miao jie Excel Programming 2 January 12th 05 06:01 AM


All times are GMT +1. The time now is 07:47 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"