![]() |
|
#6
|
|||
|
|||
|
Sub ScratchMacro()
'A basic Word macro coded by Greg Maxey Dim oBM As Bookmark Dim oRng As Range Set oBM = ActiveDocument.Bookmarks("A") 'this is a bookmark associated with an ASK field Set oRng = oBM.Range oBM.Range.Text = "This is the new value" 'or use a value set by a userform control! ActiveDocument.Bookmarks.Add "A", oRng lbl_Exit: Exit Sub End Sub |
| Tags |
| bookmark, if fields, userform |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Bookmark not replaced when inserting but to lower right corner of image
|
newbieX | Word VBA | 6 | 11-20-2015 02:03 PM |
| Send Userform Text to Bookmark | tddfs | Word VBA | 5 | 07-30-2015 05:55 PM |
Moving Selected Items from a Multiselect Listbox on a userform to a bookmark in Word
|
marksm33 | Word VBA | 3 | 01-15-2015 07:55 PM |
Word 2003 - IncludeText Does Not Include Bookmark Text if in a Form Text Control
|
skarden | Word | 1 | 12-12-2011 10:39 PM |
delete all bookmark text
|
hklein | Word VBA | 4 | 08-10-2011 04:33 AM |