Hi Experts,
I'm working on an add-in for MS Word, writing in VBA / VB6. However, if the user is in a dialog, eg Find/Replace or Print or File Open, I don't want the add-in to run. How can I test whether there are any dialog boxes open? If they are open, how can I tell which one it is?
I was thinking of something like this:
Dim objDial as word.dialog
for each objDial in word.dialogs
'check if open
next objDial
However, that doesn't work because I don't think that there is a visible property.
Does anyone have any ideas?
Thanks in advance for you help,
PatternNut
Start Free Trial