title: Word document text boxes "remember" what was in them previously
body: <p>I am using a VBA userform to randomly generate values to be sent into a Word document to provide random questions on various math topics (for my students).</p>
  
  <p>This seems to work well except that when I exit the userform (me.hide) and the values are sent and focus is back in the document, the previous values are still briefly visible every time I move the mouse.</p>
  
  <p>This only happens for an instant.  The correctly sent values appear if there is no mouse (or window slider) activity taking place.  If I view another application and do some activity there and then return to the Word document the display is fine as well.</p>
  
  <p>The flipping of values is visually annoying.  Has anyone out there encountered a similar issue?</p>
  
  <p>To reproduce:</p>
  
  <p>Create a Word document with an ActiveX Textbox and button. The button activates a userform which also contains a Textbox and a button to send the Textbox value back to the Textbox in the document. </p>
  
  <p>In my case, when the button in the document is clicked the form opens and the value does get returned to the Word document, but when rolling the mouse or moving the slider at the edge of the window the previous value in the text box briefly flickers into view. Here is the code from the document button:</p>
  
  <pre><code>Private Sub cmdOk_Click()
    ThisDocument.TextBox1.Value = TextBox1.Value
    Me.Hide
  End Sub
  </code></pre>
  
  <p>I am using Word 2016 and Windows 10.</p>
  
  <p>I tried to use the "new" Word textboxes but I do not know how to communicate with them from a userform. It is so simple using the "old" text boxes.</p>