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.
This statement activates the home page for the Adventure Works Web site.
If myWeb.Url = "C:\My Webs\Adventure Works" Then myWeb.Activate