title: VBA - Popup message when user try to print
body: <p>I am needing to set-up a function in MS Word to run a message box when a user tries to print a particular file.</p>
  
  <p>Cheers
  Anthony</p>
  
  <p>Update - </p>
  
  <p>I haven't done any VBA before and am trying to help out someone who need this. What they need is a message box with some text to display when the user goes to print this particular document. This is what they have done so far, but I'm not sure if they know where to hook it in or if this will work.</p>
  
  <pre><code>Private Sub AppThatLooksInsideThisEventHandler_DocumentBeforePrint(ByVal Doc As Document, Cancel As Boolean)
      MsgBox "Event: DocumentBeforePrint"
  End Sub
  </code></pre>