Assuming your worksheet is named "Sheet1" and one of the charts is named
"Cht1", to hide the chart use this macro:
Sub HideChart()
Worksheets("Sheet1").Shapes("Cht1").Visible = False
End Sub
To show the chart, use this macro:
Sub ShowChart()
Worksheets("Sheet1").Shapes("Cht1").Visible = True
End Sub
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.