View Single Post
 
Old 09-17-2014, 08:31 AM
DaniC DaniC is offline Windows 7 64bit Office 2010 64bit
Novice
 
Join Date: Sep 2014
Posts: 2
DaniC is on a distinguished road
Default similar issue

please help!

i'm having a similar issue. I created a user form to insert text at bookmarks, i have one bookmark id like to repeat throughout the document. I just need to get the cross references to update. ive read : http://www.word.mvps.org/FAQs/Macros...AtBookmark.htm
and now my bookmark isnt deleted but the references dont update. I dont understand how to "call" for the updatebookmark as i'm not familar with coding/coding terms. ive tried inserting the code in multiple places unsuccesfully.

this is what the code looks like now, both the bookmark and text box are "companyname"


Private Sub CommandButton1_Click()
With activedocument
Dim BMRange As Range
Set BMRange = activedocument.Bookmarks("companyname").Range
BMRange.Text = companyname
activedocument.Bookmarks.Add "companyname", BMRange
updatebookmark (companyname)
End With
UserForm1.Hide

End Sub
Reply With Quote