WD98: Error with Missing FormField Bookmark Names

Last reviewed: February 16, 1998
Article ID: Q181069
The information in this article applies to:
  • Microsoft Word 98 Macintosh Edition

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

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:

  1. Double-click the form field to display the form field Options dialog box.

  2. 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.

   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)

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q163435
   TITLE     : VBA: Programming Resources for Visual Basic for
               Applications


Additional query words:
Keywords : kbfield kbwordvba macword98 kbprg kbdta
Version : MACINTOSH:98
Platform : MACINTOSH
Issue type : kbbug
Solution Type : kbnofix


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 16, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.