Microsoft KB Archive/176865

= WD97: Error with Missing FormField Bookmark Names =

Article ID: 176865

Article Last Modified on 1/22/2007

-

APPLIES TO


 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q176865





SYMPTOMS
When you attempt to access a form field using Visual Basic for Applications commands and the bookmark name for the form field is missing, you may receive the following error message:

Run-time error: "-2147467259" Method Name of Object FormField Failed

or

Run-time error: "5941" The requested member of the collection does not exist.



CAUSE
When you copy and paste a form field to a different location, a new form field will be created. This new form field will not have a bookmark name.



WORKAROUND
Make sure each form field in the active document contains a valid bookmark name. To enter a bookmark name for a form field, follow these steps:

 Double-click the form field to display the form field Options dialog box.  In the Bookmark Name box enter a valid bookmark name.

The following characters are invalid in a bookmark name:  Any characters whose ASCII value is less than 29 and greater than 127.

-or-

 Characters listed in the following table.

   Character ASCII code      Character ASCII code     Character ASCII code ---

-        Chr(30)         <Space>   Chr(32)         ! Chr(33) "        Chr(34)         #         Chr(35)         $         Chr(36)    %         Chr(37)         &         Chr(38)         '         Chr(39)    (         Chr(40)         )         Chr(41)         *         Chr(42)    +         Chr(43)        ,         Chr(44)         -         Chr(45)    .         Chr(46)         /         Chr(47)         :         Chr(58)    ;         Chr(59)         <         Chr(60)         =         Chr(61)    >         Chr(62)         ?         Chr(63)         @         Chr(64)    [         Chr(91)         \         Chr(92)         ]         Chr(93)    ^         Chr(94)         `         Chr(96)         {         Chr(123)    |         Chr(124)        }         Chr(125)        ~         Chr(126)                    </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

<div class="references_section">