ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to find a running Excel instance and access the worksheets in it. (https://www.excelbanter.com/excel-programming/353046-how-find-running-excel-instance-access-worksheets.html)

Gary Luo

How to find a running Excel instance and access the worksheets in it.
 
Hi,

I'm trying to write a small C# program to check if any Excel instance is
running, whether myexcelfile.xle has been opened in one of the running
instances, and then access the worksheets in that file. Any ideas?

Best Regards,

Gary Luo




NickHK

How to find a running Excel instance and access the worksheets in it.
 
Gary.
Look in GetObject.

NickHK

"Gary Luo" wrote in message
...
Hi,

I'm trying to write a small C# program to check if any Excel instance is
running, whether myexcelfile.xle has been opened in one of the running
instances, and then access the worksheets in that file. Any ideas?

Best Regards,

Gary Luo






LG

How to find a running Excel instance and access the worksheets
 
Thank you very much Nick.
Gary

"NickHK" wrote:

Gary.
Look in GetObject.

NickHK

"Gary Luo" wrote in message
...
Hi,

I'm trying to write a small C# program to check if any Excel instance is
running, whether myexcelfile.xle has been opened in one of the running
instances, and then access the worksheets in that file. Any ideas?

Best Regards,

Gary Luo








All times are GMT +1. The time now is 02:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com