Propriedade FileConverter. SaveFormat (Word)FileConverter.SaveFormat property (Word)
Retorna o formato de arquivo do conversor de arquivo ou documento especificado.Returns the file format of the specified document or file converter. Long somente leitura.Read-only Long.
SintaxeSyntax
expression.expression. SaveFormat
expression é obrigatório.expression Required. Uma variável que representa um objeto' FileConverter '.A variable that represents a 'FileConverter' object.
ComentáriosRemarks
Essa propriedade retorna um número exclusivo que especifica um conversor de arquivo externo ou uma constante WdSaveFormat .This property returns a unique number that specifies an external file converter or a WdSaveFormat constant. Use o valor da propriedade SaveFormat para o argumento __ FileFormat do método SaveAs2 para salvar um documento em um formato de arquivo para o qual não há uma constante WdSaveFormat correspondente.Use the value of the SaveFormat property for the FileFormat argument of the SaveAs2 method to save a document in a file format for which there isn't a corresponding WdSaveFormat constant.
ExemploExample
Este exemplo cria um novo documento e listas em uma tabela os conversores que podem ser usados para salvar documentos e seus valores SaveFormat correspondentes.This example creates a new document and lists in a table the converters that can be used to save documents and their corresponding SaveFormat values.
Sub FileConverterList()
Dim cnvFile As FileConverter
Dim docNew As Document
'Create a new document and set a tab stop
Set docNew = Documents.Add
docNew.Paragraphs.Format.TabStops.Add _
Position:=InchesToPoints(3)
'List all the converters in the FileConverters collection
With docNew.Content
.InsertAfter "Name" & vbTab & "Number"
.InsertParagraphAfter
For Each cnvFile In FileConverters
If cnvFile.CanSave = True Then
.InsertAfter cnvFile.FormatName & vbTab & _
cnvFile.SaveFormat
.InsertParagraphAfter
End If
Next
.ConvertToTable
End With
End Sub
Este exemplo salva o documento ativo no formato de arquivo secundário WordPerfect 5.1 ou 5.2.This example saves the active document in the WordPerfect 5.1 or 5.2 secondary file format.
ActiveDocument.SaveAs _
FileFormat:=FileConverters("WrdPrfctDat").SaveFormat
Confira tambémSee also
Objeto FileConverterFileConverter Object
Suporte e comentáriosSupport and feedback
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação?Have questions or feedback about Office VBA or this documentation? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.