Word and "bookmark" functionality

J

Jason

Hi

I have a problem... When someone is working from within word, he can add and
remove bookmarks. but removing bookmarks is a lot easier than adding them.
if there is an existing bookmark has text, and the user deletes the text,
most of the time the bookmark gets deleted with the text without the user
knowing. so my question is: Are there any other "bookmark" type technologies
for word? because i can access those bookmarks programmatically from VB for
example and then process the data at those bookmarks. but obviously i cant
process the data if the program does not know where to find them. so perhaps
there is a more "robust" "bookmark" that can be use????

Thanks
Jason
 
S

Steve Culhane [MS]

Jason,
It sounds like you need to know if a bookmark exists. This way you
could conditionally
process parts of the document. You might want to try something like
this...

If ActiveDocument.Bookmarks.Exists("temp") = True Then
ActiveDocument.Bookmarks("temp").Select
End If


Let me know if this helps...

Stephen Culhane
(e-mail address removed)
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.



--------------------
| From: "Jason" <[email protected]>
| Subject: Word and "bookmark" functionality
| Date: Fri, 5 Sep 2003 10:35:26 +0200
| Lines: 16
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#[email protected]>
| Newsgroups: microsoft.public.office.developer.vba
| NNTP-Posting-Host: out10.peregrine.co.za 196.31.125.19
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.office.developer.vba:16807
| X-Tomcat-NG: microsoft.public.office.developer.vba
|
| Hi
|
| I have a problem... When someone is working from within word, he can add
and
| remove bookmarks. but removing bookmarks is a lot easier than adding them.
| if there is an existing bookmark has text, and the user deletes the text,
| most of the time the bookmark gets deleted with the text without the user
| knowing. so my question is: Are there any other "bookmark" type
technologies
| for word? because i can access those bookmarks programmatically from VB
for
| example and then process the data at those bookmarks. but obviously i cant
| process the data if the program does not know where to find them. so
perhaps
| there is a more "robust" "bookmark" that can be use????
|
| Thanks
| Jason
|
|
|
 
C

Cindy Meister -WordMVP-

Hi Jason,
When someone is working from within word, he can add and
remove bookmarks. but removing bookmarks is a lot easier than adding them.
That's an understatement!
Are there any other "bookmark" type technologies
for word? because i can access those bookmarks programmatically from VB for
example and then process the data at those bookmarks. but obviously i cant
process the data if the program does not know where to find them. so perhaps
there is a more "robust" "bookmark" that can be use?
Not really, no. If what you're passing to Word is just text, then you could
conceivably put it in custom document properties or document variables, then
display it with a DocProperty / DocVariable field. The user would have
to work a lot harder to delete your "target", however, he also won't be able
to directly edit what you've passed in (updating the field would lose the
edits).

If this is some kind of form, you could possibly use form fields for your
targets, then protect the document as a form (Tools/Protect document). But
this locks out quite a bit of functionality.

In an ideal world, you'd be able to use Word 2003, with the new XML tag,
SmartDocument and new protection functionality...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

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

Jason

Hi steve

No, i know how to use bookmarks, thanks for the reply. but my problem occurs
when those bookmarks get deleted, by users, unintentionally. so i was
inquiring as to whether there are any other "bookmark" type "fields" i could
use that are more "sticky"?

Thanks
Jason
 
J

Jason

Hi Cindy

Thanks for the help!
I will try the document protect. Unfortunately i am not passing anything to
Word, instead the user will be inputting all the values, like the form you
mentioned. so basically the bookmarks just serve as a way to pick up those
values when the user is done.

office 2003 xml looks very promising :) but clients are only now starting
to get onto Office XP! :-( unfortunate for me

so otherwise there are not really any other alternatives?

Thanks alot!
Jason
 
C

Cindy Meister -WordMVP-

Hi Jason,
I will try the document protect. Unfortunately i am not passing anything to
Word, instead the user will be inputting all the values, like the form you
mentioned. so basically the bookmarks just serve as a way to pick up those
values when the user is done.

office 2003 xml looks very promising :) but clients are only now starting
to get onto Office XP! :-( unfortunate for me

so otherwise there are not really any other alternatives?
Not really, no... If everything you're concerned about could be in a table,
or some other indentifiable structure (a frame from the Forms toolbar would
be another possibility), then alternatives (knowing in which table cell, for
example) are possible.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24 2003)
http://www.mvps.org/word

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