Activate Method

       

Activates the specified PageWindowEx, WebEx, or WebWindowEx object. With multiple objects open, you can use the Activate method to work with a specific PageWindowEx, WebEx, or WebWindowEx object.

expression.Activate

expression   An expression that returns a PageWindowEx, WebEx, or WebWindowEx object.

Remarks

The Activate method has no effect on a windowless PageWindowEx object.

Example

This statement activates the home page for the Adventure Works Web site.

If myWeb.Url = "C:\My Webs\Adventure Works" Then myWeb.Activate