Dim instance As Window Dim timeout As Integer Dim returnValue As Window returnValue = instance.SwitchToNextWindow(timeout)