title: How to use ProgressBar Control 6.0 for a VBA Userform sub
body: <p>I have trouble getting to understand how to use the ProgressBar Control in Word VBA. Most tutorials deal with calculation and insertion into Excel cells. I have a commandbutton in my userform executing <strong>A LOT</strong> of file insertion and user input textbox insertion to my word document. (<code>selection.insertfile:""</code> and <code>.Bookmarks("").Range.Text</code>)</p>
  
  <p>I have inserted the ProgressBar Control right on the userform itself.</p>
  
  <p>Is there an easy way to track the progress of the code run? Something along the lines of:</p>
  
  <pre><code>Private Sub Commandbutton1_Click()
  
  ProgressBar1 Start (0%)
  
  'Do stuff:
  selection.insertfile:""
  selection.insertfile:""
  .Bookmarks("").Range.Text
  .Bookmarks("").Range.Text
  etc.
  etc.
  
  Progressbar1 Finish (100%)
  Unload Me
  End Sub  
  </code></pre>