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.
Create and apply a combination view named Combo View.
Close the bottom pane.
Apply the Combo View again to open the bottom pane.
Activate the top pane.
The
ActivePane.Close
command does nothing, because the bottom pane is not active.Activate the bottom pane.
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.