![]() |
#1
|
|||
|
|||
![]()
I have a template with one form having 3 fields that runs 1 time when a new doc is created.
I assign the input to 3 variables and assign the variables to bookmarks in the footer of the document. That works fine. Then I start to write the text in the document and sometimes the input stops to appear on the screen and the bookmarks in the footer have their content added one time every time I press enter. I have this on several PCs now. My code for the form is: Code:
Private Sub CommandButton1_Click() Set Snr = ActiveDocument.Bookmarks("Snr").Range Snr.Text = Me.TextBox1.Value Dim Bes As Range Set Bes = ActiveDocument.Bookmarks("Bes").Range Bes.Text = Me.TextBox2.Value Dim Ini As Range Set Ini = ActiveDocument.Bookmarks("Ini").Range Ini.Text = Me.TextBox3.Value UserForm1.Hide End Sub Any ideas? |
Tags |
bookmark, form, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can't See Bookmarks | bobmayo | Word | 21 | 06-04-2013 07:37 AM |
make a form that can be used multiple times at once | Dsp581 | Excel | 19 | 04-05-2013 07:25 AM |
![]() |
Chippychap | Word | 8 | 07-20-2012 12:49 AM |
![]() |
Rattykins | Word VBA | 4 | 06-27-2012 10:02 PM |
Bookmarks for a PDF? | Ownaholic | Word | 0 | 10-30-2010 12:27 AM |