Can't Close Word Instance without Save Changes Dlg Box

Discussion in 'Python' started by PoulsenL@capanalysis.com, Jul 21, 2003.

  1. Guest

    I am using COM to manipulate word attachments to emails. Once I use them I
    am not concerned with saving the results. I use the following line:

    myWord.ActiveDocument.Close(wc.wdDoNotSaveChanges)

    This closes the document fine but only after I click no on the resulting
    "Save Changes" dialog box. Am I missing something really simple? I can
    send preceding lines if needed.

    Thanks in advance,

    Loren Poulsen
    , Jul 21, 2003
    #1
    1. Advertising

  2. "GerritM" <> wrote in message news:<bfh8d3$3h$>...
    > <> schreef in bericht
    > news:...
    > > I am using COM to manipulate word attachments to emails. Once I use them

    > I
    > > am not concerned with saving the results. I use the following line:
    > >
    > > myWord.ActiveDocument.Close(wc.wdDoNotSaveChanges)
    > >
    > > This closes the document fine but only after I click no on the resulting
    > > "Save Changes" dialog box. Am I missing something really simple? I can
    > > send preceding lines if needed.
    > >
    > > Thanks in advance,
    > >
    > > Loren Poulsen
    > >

    > I have never tried this in Word. However I had the same kind of problem in
    > Visio, which could be solved by setting the document status to saved,
    > something like:
    > myWord.ActiveDocument.saved = 1
    >
    > regards Gerrit



    I think "saved" needs to be capitalized

    myWord.ActiveDocument.Saved = True

    -Jason
    Jason Whitlark, Jul 25, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jeff Kish
    Replies:
    5
    Views:
    405
    Nigel Wade
    Apr 12, 2006
  2. Gerry Sutton
    Replies:
    1
    Views:
    538
    Peter Otten
    Apr 16, 2005
  3. hell2heaven
    Replies:
    0
    Views:
    415
    hell2heaven
    Oct 26, 2008
  4. Iñaki Baz Castillo
    Replies:
    7
    Views:
    849
    Iñaki Baz Castillo
    Jan 12, 2010
  5. Walter Beierdonck

    Self.close() window without the dialog close?Yes/NO

    Walter Beierdonck, Apr 29, 2004, in forum: Javascript
    Replies:
    1
    Views:
    343
    Grant Wagner
    Apr 30, 2004
Loading...

Share This Page