wdGotoBookMark Constant

T

TT

In Word 2002 I am receiving a "bad parameter" error whenever I try to use
wdGotoBookMark (for example, rng.GotoNext wdBookMark). The debugger shows
that the value of the constant is -1. What is the correct value of the
constant? I Googled for an answer (I really doubt I am the first to
encounter this) but could not come up with an answer).

Thanks in advance.
 
J

Jezebel

If you had the constant wrong you'd get an 'undefined' error. Bad parameter
means that the argument is inappropriate in the current context -- in this
case, for example, you get it if the document contains no bookmarks.

BTW, you can get the value of a constant by printing in Word's immediate
window: ? wdGotoBookMark
 

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