Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.WindowHide Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Hides a window.

Syntax

expression. WindowHide( ** Name** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
NameOptionalStringThe name of the window to hide. The name of a window is the exact text that appears in the title bar of the window. The default is the active window.

Return Value

Boolean

Example

The following example hides all windows except the active window.

Sub HideAllWindowsExceptActive() 

 Dim I As Long ' Index for For...Next loop 

 For I = 1 To Windows.Count 
 If Windows(I) <> ActiveWindow And Windows(I).Visible Then 

 WindowHide Windows(I).Caption 
 End If 
 Next I 

End Sub
© 2018 Microsoft