Pane.Close method (Project)

Closes the bottom pane of a window.

Syntax

expression.Close

expression An expression that returns a Pane object.

Return value

Nothing

Example

The following commands exercise the Close method for Pane objects.

  1. Create and apply a combination view named Combo View.

  2. Close the bottom pane.

  3. Apply the Combo View again to open the bottom pane.

  4. Activate the top pane.

  5. The ActivePane.Close command does nothing, because the bottom pane is not active.

  6. Activate the bottom pane.

  7. Close the bottom pane with the ActivePane.Close command.

ActiveProject.ViewsCombination.Add(Name:="Combo View", TopView:="Gantt Chart", BottomView:="Resource Sheet").Apply 
ActiveWindow.BottomPane.Close 
ActiveProject.ViewsCombination("Combo View").Apply 
ActiveWindow.TopPane.Activate 
ActiveWindow.ActivePane.Close 
ActiveWindow.BottomPane.Activate 
ActiveWindow.ActivePane.Close

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.