Class TaskPane (Word VBA)
The class TaskPane represents a single task pane available to Microsoft Word, which contains common tasks that users perform. The TaskPane object is a member of the TaskPanes collection. To use a TaskPane class variable it first needs to be instantiated, for example
Dim tpe as TaskPane
Set tpe = Application.TaskPanes(Index:=1)
For Each
Here is an example of processing the TaskPane items in a collection.
Dim tpe As TaskPane
For Each tpe In Application.TaskPanes
Next tpe
Visible
True if the specified object is visible.
For any object, some methods and properties may be unavailable if the Visible property is False.
Application.TaskPanes(1).Visible = True