Re: Wait till intialization complete...
- From: "Lüko Willms" <l.willms@xxxxxxxxxxxxxx>
- Date: Sun, 08 Oct 2006 13:42:39 -0700
Am Sun, 8 Oct 2006 18:26:20 UTC, schrieb "Tony Jollans" <my forename
at my surname dot com> auf microsoft.public.word.vba.general :
thanks for your thoughts
Well, first thing is that I don't think you can do it in Document_New at
all. The document is not considered open, or available for the Delphi app to
add variables to, until the event code has finished. This means you will
have to start a separate macro using Application.OnTime.
I had a look at this in the online help, but had and have my doubts,
one reason being the time granularity which seemed to be somewhat to
coarse, but I may have been in error on that matter.
If really the "document_new" event is not yet over in that moment,
the document will not yet have the name which is being assigned to it
by the database application, and do I not have to specify that name in
the OnTime call? Will the target macro really catch the new document
which had just been created, or some other? I am not sure.
Otherwise, your suggestion may hit the mark. Anyway, I will have to
consult with the developers of the database application, what they
have to say about my project.
Of course, if the delphi app is changed to add 400 variables you will start
failing so it would be better having a more definite trigger.
I had a look at various documents, and found that the number of
DocVariables can easily reach 850 or more...
But the very first one is named "DATA_DONE", and it always had the
value of "1". I guess that it has initially the value "0", and is
changed to "1" when the data is actually done. I have a procedure
which loops thru the document variable collection, checks for the
existence of this variable and its value (when available -- I hope
that the second condition after a AND operator is not checked by
VBA...). But, as I said, I would like to simply yield the time to the
OS and other applications by some kind of WAIT function.
Yours,
L.W.
.
- Follow-Ups:
- Re: Wait till intialization complete...
- From: Karl E. Peterson
- Re: Wait till intialization complete...
- From: Tony Jollans
- Re: Wait till intialization complete...
- References:
- Wait till intialization complete...
- From: Lüko Willms
- Re: Wait till intialization complete...
- From: Helmut Weber
- Re: Wait till intialization complete...
- From: Lüko Willms
- Re: Wait till intialization complete...
- From: Tony Jollans
- Re: Wait till intialization complete...
- From: Lüko Willms
- Re: Wait till intialization complete...
- From: Tony Jollans
- Wait till intialization complete...
- Prev by Date: Re: find highlighting, replace with shading
- Next by Date: Re: Macro won't print under XP...?
- Previous by thread: Re: Wait till intialization complete...
- Next by thread: Re: Wait till intialization complete...
- Index(es):
Relevant Pages
|