Re: Code Execution

Tech-Archive recommends: Fix windows errors by optimizing your registry



Maybe once per 1/2 year. The code is not throwing an error, it produces the
correct results. The code does not execute at all. Placing a stop in the
code is not an option unfortunately since this document is to run
'automatically' via rexec from another system.


"Jean-Guy Marcil" <NoSpam@LeaveMeAlone> wrote in message
news:%23Zt7j8rpGHA.2400@xxxxxxxxxxxxxxxxxxxxxxx
Frank Tolstyka was telling us:
Frank Tolstyka nous racontait que :

I have a document that has VBA code attached to the Document_Open
event. Every once in a while this code will not execute. I have

"Every once in a while " means...? (once per two years, once every month,
every other day? ...)
You mean nothing at all happens as if the code was ignored? Or the code
starts but does not terminate normally? Or it does, but produces wrong
results?

Depending on the frequency of the observed problem, you could try putting
a
Stop command just under the two Dim statements.
Then, you will be able to debug and see if the code actually starts or
not.

checked the macro security when this happens and it is set at low.
The code is included. The document name is AIC1.doc.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org




.



Relevant Pages

  • Re: How to insert pdf attachment with word email merge?
    ... "Then execute to a new document the mail merge that you want to send out by ... document when you run the macro. ... Doug Robbins - Word MVP ...
    (microsoft.public.word.mailmerge.fields)
  • Re: adding a file attachment to an email merge?
    ... You never actually execute the merge to email. ... Follow the instructions in the article exactly. ... >> Doug Robbins - Word MVP ... The rest of the letters is ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Select several words
    ... .Execute findText:=oldPart, _ ... Word MVP web site http://word.mvps.org ... Dim ChangeDoc As Document, RefDoc As Document ...
    (microsoft.public.word.docmanagement)
  • Re: Mail merge with excel attachment
    ... Doug Robbins - Word MVP ... I do not know how to create a separate Directory type mail merge main doc. ... columns for my attachments. ... way, and execute the mail merge, however it does not send the ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Attaching a Excel File in the mail merge and adding Sub. line
    ... execute the macro when you have the mail merge main document as the active ... Doug Robbins - Word MVP ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ...
    (microsoft.public.word.mailmerge.fields)