C
cnathaide
I am trying to control an existing running process from C#. More
specifically, I am trying to control an existing workbook that is open
in memory. I use the following code
using System.Runtime.InteropServices;
Excel.Application xlApp = Marshal.GetActiveObject("Excel.Application");
This works fine if there is only one Excel process running. Typically
the users have multiple Excel processes running. Is there any way to
iterate through all the running processes and get all the copies of
Excel that are running.
Thanks
Chris
specifically, I am trying to control an existing workbook that is open
in memory. I use the following code
using System.Runtime.InteropServices;
Excel.Application xlApp = Marshal.GetActiveObject("Excel.Application");
This works fine if there is only one Excel process running. Typically
the users have multiple Excel processes running. Is there any way to
iterate through all the running processes and get all the copies of
Excel that are running.
Thanks
Chris