Share via


RefreshPane Method

Refreshes the Document Actions task pane for the active Microsoft Office Word   2003 document or Microsoft Office Excel   2003 workbook.

expression.RefreshPane()

*expression   * Required. An expression that returns a SmartDocument object.

Remarks

The RefreshPane method raises an error if the active document does not have an XML expansion pack attached.

Example

The following example determines whether the active Microsoft 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

Applies to | SmartDocument Object