Marshal.GetActiveObject not seeing opened instance of Excel
22:06 08 Nov 2026

I have made an EPLAN API with C#. It uses .NET Framework 4.8.1.

The app gets an opened instance of Excel using Marshal.GetActiveObject to then make changes to the data.

The code works fine and is able to see the opened instance of Excel.
However the API doesn't work for 1 client because it can't see the opened instance of Excel.

This means there is some setting on his PC that is causing Marshal.GetActiveObject to fail.

What Excel or PC setting do I need to change to get Marshal.GetActiveObject working on his PC?

I've already tried updating Excel to the latest version and it didn't work.

c# excel