Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quit prevents printing (Word 2003)

    With the following sequence the document does not print:
    ActiveDocument.PrintOut
    ActiveDocument.SaveAs
    ActiveDocument.Close
    Application.Quit SaveChanges:=wdDoNotSaveChanges

    The document prints when Quit is removed. Any help would be appreciated.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Quit prevents printing (Word 2003)

    Well, if Word exits stage left, it can hardly finish printing the document, can it? Try adding Background:=False to the PrintOut instruction. Macro execution will be paused until the document has been printed.

    ActiveDocument.PrintOut Background:=False

  3. #3
    New Lounger
    Join Date
    Nov 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Quit prevents printing (Word 2003)

    Hans,
    Your suggestion worked perfectly. Thanks a million.

    Ed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •