Word) (Document.FormattingShowFilter 屬性

設定或傳回代表樣式與格式設定] [ 樣式與格式] 工作窗格中顯示的 WdShowFilter 常數。 可讀寫的 Boolean

語法

expression. FormattingShowFilter

需要 expression。 代表 Document 物件的變數。

範例

本範例會篩選格式設定,只會在 [樣式與格式設定] 工作窗格中顯示使用中文件所使用的格式設定。

Sub ShowClearFormatting() 
 With ActiveDocument 
 .FormattingShowClear = False 
 .FormattingShowFilter = wdShowFilterFormattingInUse 
 .FormattingShowFont = True 
 .FormattingShowNumbering = True 
 .FormattingShowParagraph = True 
 End With 
End Sub

另請參閱

Document 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應