Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.18 KB

Word.Shape.Visible.md

File metadata and controls

53 lines (33 loc) · 1.18 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shape.Visible property (Word)
vbawd10.chm161480831
vbawd10.chm161480831
Word.Shape.Visible
b3024bf2-3015-d3ce-97dc-2dd5858bf798
06/08/2017
medium

Shape.Visible property (Word)

True if the specified object, or the formatting applied to it, is visible. Read/write MsoTriState.

Syntax

expression.Visible

expression Required. A variable that represents a Shape object.

Remarks

FSome methods and properties may be unavailable if the Visible property is False.

Example

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 to 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

See also

Shape Object

[!includeSupport and feedback]