Re: wdGotoBookMark Constant

Tech-Archive recommends: Fix windows errors by optimizing your registry



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



"TT" <tomtatham@xxxxxxxxxxx> wrote in message
news:--ednSFJxtYSV9DfRVn-oQ@xxxxxxxxxxxxxx
> 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.
>


.



Relevant Pages