L
Lüko Willms
Is there a "wait" or "pause" function in VBA?
I have written a VBA-program for MS-Word which is started by the
"New" event, i.e. when a new document is created based on a given
template, in which my VBA program resides.
The new document is created by a database application (which is
written in Delphi, by the way), which writes several hundred
DocVariables into the Word document, which are then used in Fields,
and in my VBA program.
The problem is now, that the "New" event is the moment when the
document is created by that other application, and when my VBA program
is triggered by that event, nearly all those DocVariables which my VBA
program is to process are simply not yet in existence. They are still
being Added. Takes its time.
How can I, resp. my VBA program, wait for the completion of this
process? Is there a "wait" or "pause" function in VBA, by which my VBA
program can be laid to rest for a specified span of time? Can I detect
another application or task working on the "ActiveDocument" which my
VBA program is associated with?
Any suggestion for me?
Yours,
L.W.
Germany
I have written a VBA-program for MS-Word which is started by the
"New" event, i.e. when a new document is created based on a given
template, in which my VBA program resides.
The new document is created by a database application (which is
written in Delphi, by the way), which writes several hundred
DocVariables into the Word document, which are then used in Fields,
and in my VBA program.
The problem is now, that the "New" event is the moment when the
document is created by that other application, and when my VBA program
is triggered by that event, nearly all those DocVariables which my VBA
program is to process are simply not yet in existence. They are still
being Added. Takes its time.
How can I, resp. my VBA program, wait for the completion of this
process? Is there a "wait" or "pause" function in VBA, by which my VBA
program can be laid to rest for a specified span of time? Can I detect
another application or task working on the "ActiveDocument" which my
VBA program is associated with?
Any suggestion for me?
Yours,
L.W.
Germany