Update bookmark text

B

Bo Rasmussen

Hi,

I have a template which contain a number of bookmarks. The user should
change the text of these bookmarks and a lot of fields throughout the
document are updated. The problem is that if the user by accident deletes
all the bookmark text - then he cannot reinsert text into the bookmark - it
has become a placeholder bookmark! How can the user inset text into an empty
bookmark ??

Regards
Bo Rasmussen
 
D

Doug Robbins

Maybe you should be using formfields or a userform.

See the article "How to create a Userform" at:

http://word.mvps.org/FAQs/Userforms/CreateAUserForm.htm

Please Fill Out This Form
Part 1: Create professional looking forms in Word
http://www.computorcompanion.com/LPMArticle.asp?ID=22

Part 2: Adding Automation to your Word forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=46

Part 3: Learn more VBA (macros) to automate your forms.
http://www.computorcompanion.com/LPMArticle.asp?ID=119

Part 4: Use custom dialog boxes in your Word forms
http://www.computorcompanion.com/LPMArticle.asp?ID=127

Part 5: Connect your AutoForm to a database to save input time and keep
better records!
http://www.computorcompanion.com/LPMArticle.asp?ID=136

See the article "Working with Bookmarks in VBA" at:

http://word.mvps.org/FAQs/MacrosVBA/WorkWithBookmarks.htm


--
Please respond to the Newsgroup for the benefit of others who may be
interested. Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP
 
B

Bo Rasmussen

I already started doing that - the problem is that users should invoke this
userform when they want to change things. I would prefer to simply change
text directly in the bookmarks. We've got quite a lot of templates so
creating and maintaining user forms require some work - and I would like to
avoid that ;o)

Regards
Bo Rasmussen
 
C

Cindy M -WordMVP-

Hi Bo,
I have a template which contain a number of bookmarks. The user should
change the text of these bookmarks and a lot of fields throughout the
document are updated. The problem is that if the user by accident deletes
all the bookmark text - then he cannot reinsert text into the bookmark - it
has become a placeholder bookmark! How can the user inset text into an empty
bookmark ??
Word simply does not provide for this. It's definitely a problem, which is why
Doug suggested form fields or a UserForm. The only other approach that occurs
to me would be to keep this kind of information in custom document properties
and insert DocProperty fields to display/reference it throughout the document.
Display a dialog box/user form when a document is opened/created to get the
initial information. If a user deletes one by accident, the others won't be
affected and it will be easier for him to replace it. Perhaps a toolbar button
to click when the user wants to change the information would also be useful.

Another possible approach, beginning with Word 2003, would be to set up a
SmartDocument so that the user can access/manage this information in a Task
Pane.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top