The following example uses the Show method to move the specified code pane to the foreground.
Application.VBE.CodePanes(2).Show