共用方式為


(Office) 的 SmartDocument.RefreshPane 方法

重新整理使用中的 Microsoft Word 文件或 Microsoft Excel 活頁簿的 [文件動作] 工作窗格。

語法

運算式RefreshPane

表達 代表 SmartDocument 物件的 變數。

註解

如果使用中文件沒有附加 XML 擴充套件, 則 RefreshPane 方法將會引發錯誤。

範例

The following example determines whether the active Excel workbook has an XML expansion pack attached. If so, it refreshes the smart document's Document Actions task pane.

 Dim objSmartDoc As Office.SmartDocument 
 Set objSmartDoc = ActiveWorkbook.SmartDocument 
 If objSmartDoc.SolutionID > "None" Then 
 objSmartDoc.RefreshPane 
 Else 
 MsgBox "No XML expansion pack attached." 
 End If 

另請參閱

支援和意見反應

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