TaskPanes Collection

Microsoft Word Visual Basic

TaskPanes Collection

Application TaskPanes
TaskPane

A collection of TaskPane objects that contains commonly performed tasks in Microsoft Word.

Using the TaskPanes collection

Use the TaskPanes property to return the TaskPanes collection. Use the Item method with a wdWorkPane constant to refer to a specific task pane. The example below displays the formatting task pane.

Sub FormattingPane()
    Application.TaskPanes(wdTaskPaneFormatting).Visible = True
End Sub