Article ID: 186715
Article Last Modified on 6/17/2005
Sub ShowFileType()
If Documents.Count <> 0 Then
Select Case ActiveDocument.SaveFormat
Case wdFormatTemplate
MsgBox "Word Template"
Case wdFormatDocument
MsgBox "Word Document"
Case wdFormatDOSText
MsgBox "MS-DOS Text"
Case wdFormatDOSTextLineBreaks
MsgBox "MS-DOS Text w/ LineBreaks"
Case wdFormatRTF
MsgBox "Rich Text Format"
Case wdFormatText
MsgBox "Text Only"
Case wdFormatTextLineBreaks
MsgBox "Text Only w/ Line Breaks"
Case wdFormatUnicodeText
MsgBox "Unicode Text"
Case Else
MsgBox FileConverters(ActiveDocument.SaveFormat).FormatName
End Select
End If
End Sub
menus, commands
181058 OFF98: How to Run Sample Code from Knowledge Base Articles
Keywords: kbbug kbmacroexample kbtemplate kbdtacode kbpending KB186715