Microsoft KB Archive/162132

From BetaArchive Wiki
Knowledge Base


WD97: Run-time error '5880': No Registered Converter Supports Saving Files in This Format

Article ID: 162132

Article Last Modified on 1/19/2007



APPLIES TO

  • Microsoft Word 97 Standard Edition



This article was previously published under Q162132


SYMPTOMS

When you run the following line of Visual Basic for Applications code

   ActiveDocument.SaveAs "My HTML Document.html", _
   FileFormat:=Application.FileConverters("HTML").SaveFormat
                

you receive the following error message:

Run-time error '5880': No registered converter supports saving files in this format.

CAUSE

This problem occurs when accessing the "HTML" document format from the FileConverters collection using a string value instead of a numerical value for the index.

STATUS

Microsoft has confirmed this to be a problem in Word 97. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

For additional information, please see the following article in the Microsoft Knowledge Base:

173707 OFF97: How to Run Sample Code from Knowledge Base Articles


REFERENCES

On page 430 of the Microsoft Office 97 VisualBasic Programmer's Guide, it references the use of the FileConverters("HTML").SaveFormat syntax. The workaround in this article should be applied to the example in this Guide.

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

163435 VBA: Programming Resources for Visual Basic for Applications



Additional query words: wordcon vb vbe vba

Keywords: kbmacroexample kbnofix kbprb KB162132