Show Method

Applies To

CodePane object, UserForm object.

Description

Makes the specified code pane the visible code pane in its window.

Syntax

object.Show

The object placeholder is an object expression that evaluates to an object in the Applies To list.

Remarks

The Show method makes the specified code pane the pane with the focus in its window.

See Also

Hide method ("Microsoft Visual Basic for Applications Language Reference"), Load statement ("Microsoft Visual Basic for Applications Language Reference"), SetFocus method, Unload statement ("Microsoft Visual Basic for Applications Language Reference").

Example

The following example uses the Show method to move the specified code pane to the foreground.

Application.VBE.CodePanes(2).Show