Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-13-2015, 04:20 AM
PeterPlys PeterPlys is offline Form updating Bookmarks - writes to the bookmarks multiple times Windows 8 Form updating Bookmarks - writes to the bookmarks multiple times Office 2013
Novice
Form updating Bookmarks - writes to the bookmarks multiple times
 
Join Date: Jan 2015
Location: Denmark
Posts: 7
PeterPlys is on a distinguished road
Default Form updating Bookmarks - writes to the bookmarks multiple times

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
My 3 bookmarks are named: Snr, Bes and Ini


Any ideas?
Reply With Quote
 

Tags
bookmark, form, vba



Similar Threads
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
Form updating Bookmarks - writes to the bookmarks multiple times Word only writes top half of input in form Chippychap Word 8 07-20-2012 12:49 AM
Form updating Bookmarks - writes to the bookmarks multiple times VBA code to extract specific bookmarks from multiple word files Rattykins Word VBA 4 06-27-2012 10:02 PM
Bookmarks for a PDF? Ownaholic Word 0 10-30-2010 12:27 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft