Home » excel » c# – Excel Interop : Can you listen for a change in range value?

c# – Excel Interop : Can you listen for a change in range value?

Posted by: admin April 23, 2020 Leave a comment

Questions:

Is it possible, and if so how, to listen to changes in an Excel range from within C# using the MS interop libraries?

I know how to read the value in a named range, but don’t know how to listen and automatically pick up changes. Been through Google and not found anything to solve this…

How to&Answers:

I don’t think Range object has a Change event. You can listen to the Worksheet Change event and probably do a bit more checking to figure out if the change is the one you want to catch.