Microsoft KB Archive/162132: Difference between revisions

From BetaArchive Wiki
(importing KB archive)
 
m (Text replacement - """ to """)
 
Line 50: Line 50:


When you run the following line of Visual Basic for Applications code
When you run the following line of Visual Basic for Applications code
<pre class="codesample">  ActiveDocument.SaveAs &quot;My HTML Document.html&quot;, _
<pre class="codesample">  ActiveDocument.SaveAs "My HTML Document.html", _
   FileFormat:=Application.FileConverters(&quot;HTML&quot;).SaveFormat
   FileFormat:=Application.FileConverters("HTML").SaveFormat
                 </pre>
                 </pre>
you receive the following error message:
you receive the following error message:
Line 65: Line 65:
== CAUSE ==
== CAUSE ==


This problem occurs when accessing the &quot;HTML&quot; document format from the FileConverters collection using a string value instead of a numerical value for the index.
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.


</div>
</div>
Line 92: Line 92:
== REFERENCES ==
== REFERENCES ==


On page 430 of the Microsoft Office 97 VisualBasic Programmer's Guide, it references the use of the FileConverters(&quot;HTML&quot;).SaveFormat syntax. The workaround in this article should be applied to the example in this Guide.<br />
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.<br />
<br />
<br />
For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:
For more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base:

Latest revision as of 11:00, 21 July 2020

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