![]() |
#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 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
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 |
![]() |
marksm33 | Word VBA | 3 | 01-15-2015 07:55 PM |
![]() |
skarden | Word | 1 | 12-12-2011 10:39 PM |
![]() |
hklein | Word VBA | 4 | 08-10-2011 04:33 AM |