title: Get value of TextBox in Word by but in Word template
body: <p>Background: I want to use a specific entered text from a TextBox for the default filename in the SaveAs dialog.</p>
  
  <p>I have implemented the following VBA script in my document, a Word 2010 template .dotm</p>
  
  <pre><code>Sub FileSaveAs()
  
  'for testing
  Dim fileName As String
  fileName = Me.tb_myTextBox.Value &amp; "_MyFileNameToSave"
  MsgBox fileName
  
  'use specific file name in save dialog
  With Dialogs(wdDialogFileSaveAs)
    .Name = fileName
    .Show
   End With
  
  End Sub
  </code></pre>
  
  <p>It works fine, when I run it. I saved the .dotm, closed it and reopened it out from the Windows Explorer (means as "end user").
  BUT in this case, means after open the template document as "end user" (so that I can save a new doc out of it and not overwrite the template), the content/value of the TextBox is empty, even if I entered something into it.</p>
  
  <p>So, how can I read out the data of the TextBox in "document mode" of a template?</p>