Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can I read the value being inserted at a bookmark?

4 views
Skip to first unread message

Damon Grieves

unread,
Oct 22, 2001, 9:34:54 AM10/22/01
to
I have a word97 document and read an integer from an access form to a
bookmark on the document. I want to be able to check if the value is <=1 so
the sentence will end in 'year' or else it will be 'x years'. I cant find a
way in vba to tell what value the ActiveDocument.Bookmark is holding.
What is the best way of doing this?
TIA


ben

unread,
Oct 22, 2001, 12:00:12 PM10/22/01
to
Hi Damon

I don't know about constructing a sentence using vba, but it
sounds like you could just write your sentence by hand and use
an IF field at the end for example :

the project will be completed in {bookmark} { if { Bookmark } =
1 "year" "years" }

Brackets inserted with crtl+f9 of course. Substitute the name of
your bookmark in the above.

Ben

Jim Stiene

unread,
Oct 30, 2001, 5:01:54 PM10/30/01
to
Is there a way to detect and remove numbered lists with WordBasic? I
know VBA but am fairly new to WordBasic.
0 new messages