title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Shape.Visible property (Word) |
vbawd10.chm161480831 |
|
|
b3024bf2-3015-d3ce-97dc-2dd5858bf798 |
06/08/2017 |
medium |
True if the specified object, or the formatting applied to it, is visible. Read/write MsoTriState.
expression.Visible
expression Required. A variable that represents a Shape object.
FSome methods and properties may be unavailable if the Visible property is 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 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
[!includeSupport and feedback]