Using FileSystemWatch in Excel

Add-in Express™ Support Service
That's what is more important than anything else

Using FileSystemWatch in Excel
Marshal to Excel main thread ? 
Lars von Wedel




Posts: 37
Joined: 2010-05-04
Hello,

I am working on an add-in that displays contents from a file on disk. I would like to update Excel automatically when the file content changes. The notification can be obtained as an event from the FileWatcher class (in System.IO).

However, the event will be raised in a different thread. What is the easiest way to call Excel to update all formulas in its own main thread ?

Lars
Posted 15 Jun, 2011 00:55:21 Top
Andrei Smolin


Add-in Express team


Posts: 18823
Joined: 2006-05-11
Posted 15 Jun, 2011 04:27:13 Top