Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help: Show series on graph if checkbox ticked 1

Status
Not open for further replies.

Walshie1987

Technical User
Oct 5, 2006
100
Hi, I have a graph with various pieces of data on it (Series 1, Series 2 etc)

I want to have check boxes next to the graph so when I tick them the data is visible on the graph and when I untick them I want the data on the graph not to be visible.

I don't want to use:

column(x).hidden = false

Any other ways around this?

Cheers
Chris
 




Hi,

The simpliest way is to FIRST, make sure that the Chart Options include Plot visible cells only

You may or not be able to use the AutoFilter, depending how you data is organized

Use the control to control hiding/unhiding the appropriate row or column. Use the macro recorder if necessary.

Skip,

[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue]
 
Depending on the data structure, pivot chart can be useful.

combo
 
Thanks for the above, will play around and see what I can do!

Chris
 
Here is an example that does what you want.


The checkbox is tied to a cell.

The cell holds a boolean.

The boolean is used in a named formula. The named formula returns either the range you want (if checkbox cell is true) or a blank range (if checkbox cell is false).

The named formula is inserted into the chart value series.

Try it. Let me know if questions.
 
To be a little more complete, I should have used a calculated named formula for the series names, so they would also go away when the checkbox was unchecked.
 
Hi Pete, Thats exactly what I'm looking for, Thanks thats a huge help!

Cheers
Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top