Documents referencing a ~tmp file ?



I have several hundred documents that were created using a VBA
template.

Occasionally when closing of the documents based on the template, I
get the error "This document cannot be closed because it is referenced
by an open VBA project. You should close the project that references
this document before closing this document."

The documents that seem to do this have a weird reference to
~wrc004.tmp etc.

How can I remove the references for ALL documents and replace them
with the correct one programatically?

Why would this be happening?

Thanks! Ben
.



Relevant Pages

  • Re: VBA code Word Templates
    ... Global Find does not find any code that is in a word template. ... every string there is in the vba editor. ... references that vb programmers are used to. ... The application that I referred you to called GlobalFind DOES search ...
    (microsoft.public.word.vba.general)
  • Re: VBA code Word Templates
    ... Global Find does not find any code that is in a word template. ... every string there is in the vba editor. ... changes to all these references. ... The application that I referred you to called GlobalFind DOES search ...
    (microsoft.public.word.vba.general)
  • Re: VBA code Word Templates
    ... On 2 Aug, 16:20, jaslegume ... The only problem is that this is VBA behind the template. ... references that vb programmers are used to. ...
    (microsoft.public.word.vba.general)
  • RE: Documents referencing a ~tmp file ?
    ... You may have objects that are created by code in the template but are not ... > Occasionally when closing of the documents based on the template, ... > by an open VBA project. ... You should close the project that references ...
    (microsoft.public.word.vba.general)
  • Re: VBA doesnt recognised mid(..) and left(..)
    ... fro the template the VBA references do all appear to be set the same as they ... I found that if I added in full references to the functions - for example ... problem with the references for the VBA project. ... >>can find all the references it says it doesn't recognise. ...
    (microsoft.public.word.vba.general)