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

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 ?

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

Add-in Express team

Posts: 17333
Joined: 2006-05-11
Hello Lars,

Check Using Threads. Find a demo on the forum, say use this search.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 15 Jun, 2011 04:27:13 Top