Visible Property

Microsoft Office Web Components Visual Basic

constant that determines the visibility of the specified worksheet. Read/write.

expression.Visible

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example displays the legend for the specified chart and hides the specified legend entry.

Sub ShowLegend()

   ChartSpace1.Charts(0).HasLegend = True
   ChartSpace1.Charts(0).Legend.LegendEntries(1).Visible = False

End Sub