Visible Property
Applies To
Application object, Border object, FillFormat object, LineFormat object, ShadowFormat object, Shape object, ShapeRange collection object, Task object, ThreeDFormat object.
Description
Application, Task, or Border object: True if the specified object is visible. Read/write Boolean.
FillFormat, LineFormat, ShadowFormat, Shape, ShapeRange, or ThreeDFormat object: True if the specified object, or the formatting applied to it, is visible. Read/write Long.
Remarks
To hide applications other than Word that are already running, use the Hidden property of the Task object. For information about starting a new task, see the Task object.
See Also
Hidden property, PrintHiddenText property, ShowHidden property, ShowHiddenText property.
Example
This example hides Word.
Application.Visible = False
This example hides the Calculator, if it's running. If it's not running, a message is displayed.
If Tasks.Exists("Calculator") Then
Tasks("Calculator").Visible = False
Else
Msgbox "Calculator is not running."
End If
This example creates a table in the active document and removes the default borders from the table.
Set myTable = ActiveDocument.Tables.Add(Range:=Selection.Range, _
NumRows:=12, NumColumns:=5)
For Each aBorder In myTable.Borders
aBorder.Visible = False
Next aBorder
This example hides the shadow formatting for the first shape in the active document.
ActiveDocument.Shapes(1).Shadow.Visible = False
This example creates a new document, and then adds text and a rectangle to it. The example also sets Word to hide the rectangle while the document is being printed and then make it visible again after printing is completed.
Set myDoc = Documents.Add
Selection.TypeText Text:="This is some sample text."
With myDoc
.Shapes.AddShape msoShapeRectangle, 200, 70, 150, 60
.Shapes(1).Visible = False
.PrintOut
.Shapes(1).Visible = True
End With