WD97: Converted WordBasic Macro Doesn't Apply Outline Numbering

Last reviewed: March 9, 1998
Article ID: Q162148
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When you run a WordBasic macro that has been converted in Visual Basic for Applications and that contains the FormatHeadingNumbering command, you may receive the following error:

   Run-time error '159': The value of one of the fields is too high.

RESOLUTION

Set the properties of the Visual Basic for Applications ListLevel object and use the ApplyListTemplate method.

For more information about the ListLevel object, from the Visual Basic for Applications Editor, click the Office Assistant, type "ListLevel," click Search, and then click to view "ListLevel object."

For more information about the ApplyListTemplate method, from the Visual Basic for Applications Editor, click the Office Assistant, type "ApplyListTemplate," click Search, and then click to view "ApplyListTemplate method."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Visual Basic Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q120802
   TITLE     : Office: How to Add/Remove a Single Office Program or
               Component

STATUS

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

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: vb vba vbe
Keywords : kbdta kbdtacode kbwordvba kbmacroexample word8 word97
Version : WINDOWS:97
Platform : WINDOWS
Hardware : x86
Issue type : kbbug
Solution Type : kbpending


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: March 9, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.