title: Introduce a delay to allow printing of word doc to complete
body: <p>I have the following code to print a word document from vbscript</p>
  
  <pre><code>Set objWord = CreateObject("Word.Application")
  objWord.Caption = "Test"
  objWord.Visible = False
  
  Set objDoc = objWord.Documents.Open("c:\test.doc")
  
  'now print to default printer
  objDoc.PrintOut()
  
  MsgBox("Finished!")
  
  'close word application
  objWord.Quit 0
  </code></pre>
  
  <p>I would like to remove the message box and have the script silently run and complete, but when the delay of the message box is removed, the script finishes before the document is printed.</p>
  
  <p>Is there a way to achieve this?</p>
  
  <p>Many thanks</p>
  
  <p>Dave</p>