Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-17-2014, 08:31 AM
DaniC DaniC is offline Cross Referencing Bookmarks populated from a userform Word 2010 Windows 7 64bit Cross Referencing Bookmarks populated from a userform Word 2010 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
 

Tags
bookmark, cross reference, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Update Bookmarks from a Userform alshcover Word VBA 12 01-12-2015 06:53 PM
Cross-referencing Bookmarks and Formatting kd12 Word 6 06-09-2014 09:20 PM
Cross Referencing Bookmarks populated from a userform Word 2010 issues with cross-referencing khaines Word 7 03-15-2012 03:25 AM
Cross-referencing figure in Word 2003 - Problem ultimateguy Word 0 07-30-2009 12:37 PM
Cross referencing maltesedog Word 0 02-13-2009 07:43 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:25 PM.


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