Re: autoclose() - supressing save file message

From: Alpha (anonymous_at_discussions.microsoft.com)
Date: 04/21/04


Date: Wed, 21 Apr 2004 12:56:03 -0700

OK. I connected to the Customer site and placed the template in the Word Startup folder. I added the msgbox and it pops up so it's telling me that the MACRO autoclose() is being run. However, the message asking to save the file still popping up right before my message box i the autoclose().

I tried replacing the Activedocument.saved = TRUE with Activedocument.close but I got a mssage "Command failed" when I was closing the template.

Is this just a bug in the Word2002? Because this whole thing works just fine here at my office using Word 2000.

Thanks.



Relevant Pages

  • Re: Sockets, writing data and shutdownOutput
    ... > This does not look like merely closing the output ... was just a few nanometers away from stepping on yet another bug in Sun's ... library API into the big bad world. ... and resources in PREVENTING such bugs creeping in in the first place... ...
    (comp.lang.java.programmer)
  • Re: Closing doc in DocumentCreated event crashes
    ... I've created a template with a DocumentCreated event handler. ... I look for certain conditions and may end up closing the document. ... It works fine, but if I run Visio under a C++ debugger, I get "Unhandled ...
    (microsoft.public.visio.developer)
  • Re: VS 2005 Bug?
    ... I can confirm that this is an error in template argument deduction. ... I posted the bug on Microsoft Connect and just a few hour later the ... If you make the effort to report a bug, ...
    (microsoft.public.vc.language)
  • Re: problem with non-existing templates
    ... Microsoft are far from perfect but this could hardly be called a bug! ... Have you tried my suggestion of putting a dummy template in the same ...
    (microsoft.public.word.vba.general)
  • Re: Member Function Templates
    ... > class TypeFactory ... Yes, a known bug. ... has serious problems with template functions that don't mention all ... template parameters in their signature. ...
    (microsoft.public.vc.language)