Visible Property [Shape]

Visible returns or sets the visibility state of the shape. It has a Boolean value. The value is 'True', when the shape is visible and 'False', when the shape is not visible or hidden.

Syntax

object.Visible

object. Visible = Visible

Parameter

Type

Description

Visible

Boolean

required

Example 1

This example demonstrates how to return whether or not a rectangle is visible.

Debug.Print Rectangle.Visible

Example 2

This example demonstrates how to hide a rectangle.

Rectangle.Visible = False

Example 3

This script displays all the methods and properties in the Shape object.

Used by: Shape object