Article ID: 224066 - Last Review: December 2, 2005 - Revision: 2.2 WD2000: Error Message: Word Cannot Save Files. The Converter for This Format Can Only Open FilesThis article was previously published under Q224066 On This PageERROR MESSAGE
When you try to save a document in a different file format by using a recorded Visual Basic for Applications (VBA) macro, you may receive the following error message:
Word cannot save \016\000 files. The converter for this format can only open files.
NOTE: Microsoft Office 2000 has built-in functionality that allows you to get more information about difficult-to-troubleshoot alerts or error messages. If you want to enable this functionality for this and other error messages in Microsoft Office 2000, please download the Microsoft Office 2000 Customizable Alerts file from the Microsoft Office Update Web site at the following address: http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C
(http://www.microsoft.com/downloads/details.aspx?FamilyID=8FBEE1D3-C5BB-4A36-A2F7-DC63DE2A818C)
NOTE: If you reached this article by clicking the Web Info button in an error message, you already have Customizable Alerts enabled.
THINGS TO TRY
If you record a macro that changes the file type, the FileFormat property will contain a number. The following sample macro was recorded using HTML as the "Save as type":
Use any of the following methods to resolve this problem. Method 1: Use the FileFormat Built-in Conversion ConstantFileFormat accepts the following built-in conversion constants:
wdFormatDocument
For example, to use a constant for the HTML save example earlier in this article, use the following:
wdFormatDOSText wdFormatDOSTextLineBreaks wdFormatEncodedText wdFormatHTML wdFormatRTF wdFormatTemplate wdFormatText wdFormatTextLineBreaks wdFormatUnicodeText Method 2: Use the FileConverters Collection to Retrieve the Correct FileFormat Number for a Conversion Type for Any ComputerMicrosoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following sample Visual Basic for Applications macro saves a document in HTML format on any computer:NOTE: In the following example, replace "HTML" with the class name you want to use for Save As. For a list of class names, see the "Use the Class Name of the Converter" section later in this article. Method 3: Use the Class Name of the ConverterThe following list contains converters and class names that are installed by Word and that you can use for saving a document.Collapse this table
The following sample macro loops through all installed converters that you can use for saving and then inserts the converter name and associated class name into a blank document: MORE INFORMATIONFor additional information, click the article number below
to view the article in the Microsoft Knowledge Base:
209186
(http://support.microsoft.com/kb/209186/EN-US/
)
WD2000: How to Use Other Converters with the FileFormat Property
| Article Translations
|
Back to the top
