L
Lex
The message is "You cannot close Microsoft Office Word because a dialog box
is open."
The problem I have is that I am not closing word, nor can I see an open
dialog box.
Actually the last is not entirely true. My add-in has an open modal form at
this point from which users can select from a list of documents to add as
linked documents to the currently open one.
The real bum here is that it does not complain in any way if I am running in
debug. So I can't step through code and watch it go pop. I have had to add
line numbers and display them on a message box when the error occurs. The
line it reports as causing this error is
Set wdTempDoc = Word.Application.Documents.Open(p_sFileSpec)
If anyone has any ideas as to why this might be happening I would love to
hear them.
is open."
The problem I have is that I am not closing word, nor can I see an open
dialog box.
Actually the last is not entirely true. My add-in has an open modal form at
this point from which users can select from a list of documents to add as
linked documents to the currently open one.
The real bum here is that it does not complain in any way if I am running in
debug. So I can't step through code and watch it go pop. I have had to add
line numbers and display them on a message box when the error occurs. The
line it reports as causing this error is
Set wdTempDoc = Word.Application.Documents.Open(p_sFileSpec)
If anyone has any ideas as to why this might be happening I would love to
hear them.