I\'m writing an Excel Addin using COM Interop from .net. I have a command that pops up a dialog, and from the dialog I do some work like collecting data from the used range
There is an Application.Ready property that is supposed to give you this information but in practice it doesn't work reliably. See here for a hackaround.
You might also want to look at setting Application.Interactive=false while your .net code is doing its stuff.