Visible Property
Returns or sets the visible state of the PageWindowEx or WebWindowEx object. The visible state for the PageWindowEx object is read-only Boolean. The visible state for the WebWindowEx object is read/write Boolean.
expression.Visible
expression Required. An expression that returns one of the objects in the Applies To list.
Example
In the following example, the GetVisibleState
procedure returns the visible state of the first PageWindowEx object from the CheckIfVisible
function.
Private Sub GetVisibleState()
Dim myIsVisible As Boolean
myIsVisible = CheckIfVisible
End Sub
Function CheckIfVisible() As Boolean
Dim myPage As PageWindowEx
Dim myVisibleState As Boolean
Set myPage = Application.Webs(0).WebWindows(0).PageWindows(0)
myVisibleState = myPage.Visible
CheckIfVisible = myVisibleState
End Function
The following example sets the visible state of a WebWindowEx object to a windowless state.
Private Sub OpenInNoWindow()
Dim myWebWindow As WebWindowEx
Set myWebWindow = Webs(0).WebWindows(0)
myWebWindow.Visible = False
End Sub