Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
I am a VERY little bit familiar with VBA and am wondering if someone can assist me in the code necessary to make a chart disappear / reappear by clicking a command button. thanks, Rick |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
try this assigned to a button or shape. I don't like command buttons but do
it if you like. One click hides the next unhides Sub togglechart() ActiveSheet.ChartObjects("Chart 1").Visible = Not ActiveSheet.ChartObjects("Chart 1").Visible = True End Sub "Rick" wrote in message ... Hello: I am a VERY little bit familiar with VBA and am wondering if someone can assist me in the code necessary to make a chart disappear / reappear by clicking a command button. thanks, Rick |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
ActiveSheet.ChartObjects.Visible = False
ActiveSheet.ChartObjects.Visible = True "Rick" wrote in message ... Hello: I am a VERY little bit familiar with VBA and am wondering if someone can assist me in the code necessary to make a chart disappear / reappear by clicking a command button. thanks, Rick |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Watch for linewrap (All one line). Toggles visibility on and off.
Sub Tester() ActiveSheet.ChartObjects("Chart 95").Visible = Not ActiveSheet.ChartObjects("Chart 95").Visible End Sub Tested using Excel 97SR2 on Windows 98SE, HTH Paul -------------------------------------------------------------------------------------------------------------- Be advised to back up your WorkBook before attempting to make changes. -------------------------------------------------------------------------------------------------------------- Hello: I am a VERY little bit familiar with VBA and am wondering if someone can assist me in the code necessary to make a chart disappear / reappear by clicking a command button. thanks, Rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Make a chart axis visible/invisible with VBA | Charts and Charting in Excel | |||
How to make a checkbox on a chart invisible when it is clicked? | Charts and Charting in Excel | |||
How to make hidden sheet invisible | New Users to Excel | |||
Invisible graph content | Excel Discussion (Misc queries) | |||
Make one column Invisible. | Excel Programming |