WD97: Run-time Error '1280' Setting Custom Dictionary

Last reviewed: February 11, 1998
Article ID: Q163416
The information in this article applies to:
  • Microsoft Word 97 for Windows

SYMPTOMS

When attempting to add a custom dictionary through Visual Basic for Applications using the WordBasic object, you receive the following error:

   Run-time error '1280': The custom dictionary "<Custom dictionary name>"
   is not available.

CAUSE

The file name of the custom dictionary is greater than 128 characters. The following converted WordBasic command demonstrates the error if the contents of the string variable, in this example, FileName$, storing the file name is greater than 128 characters in length:

    WordBasic.ToolsOptionsSpelling CustomDict1:=FName$

RESOLUTION

Rename the file so it contains no more than 128 characters (including the path).

-or-

Use Visual Basic for Applications commands instead of the WordBasic object with WordBasic commands. For example:

   CustomDictionaries.Add FileName:=FName$

STATUS

Microsoft has confirmed this to be a problem in the 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.


Additional query words: 97 vb vbe vba word8 word97 8.0 8.0
Keywords : kbwordvba kbbug kbhowto kbprg kbusage
Version : 97
Platform : WINDOWS


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