Close word window usering VBA



Hi There
I am trying to work out how to close a single word window without closing
any other word windows that might be open.

The issue is that if this is the only document left open.. it closes the
document but still leaves the word window open.

I have tried the following
Me.Application.ActiveWindow.Close
Windows("conquest report.doc").Parent.Close
SaveChanges:=wdDoNotSaveChanges
ActiveDocument.Close wdDoNotSaveChanges
Windows("A.doc").Application.Quit

Non of this code gives me the solution I am looking for.

I would really appreciate some assistance.

Thanks
.



Relevant Pages

  • Re: Close word window usering VBA
    ... I am trying to work out how to close a single word window without closing ... ActiveDocument.Close wdDoNotSaveChanges ... I would really appreciate some assistance. ...
    (microsoft.public.office.developer.vba)
  • Re: Close word window usering VBA
    ... You would need to set an object reference to the Word Application ... Dim objWdApp As Word.Application ... I am trying to work out how to close a single word window without closing ...
    (microsoft.public.office.developer.vba)
  • Re: Close word window usering VBA
    ... Dim objWdApp As Word.Application ... Start the Macro Recorder ... I am trying to work out how to close a single word window without closing ...
    (microsoft.public.office.developer.vba)
  • Re: Close word window usering VBA
    ... Start the Macro Recorder ... They may have smarter or better ideas which handle odds and ends. ... I am trying to work out how to close a single word window without closing ...
    (microsoft.public.office.developer.vba)
  • Closing single word window
    ... I am trying to work out how to close a single word window without closing ... I can close the document and I can close all the word windows and I can ... I would really appreciate some assistance. ...
    (microsoft.public.word.vba.general)

Loading