+ Reply to Thread
Results 1 to 3 of 3

Chart Series Hide/Unhide using CheckBox form control

  1. #1
    Registered User
    Join Date
    10-31-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    11

    Post Chart Series Hide/Unhide using CheckBox form control

    I have Chart with multiple Series, and I want to use Checkbox buttons placed on Chart to show/hide particular data series.
    I have found some threads regarding same, which are not solved or helpful.

    Thanks.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,957

    Re: Chart Series Hide/Unhide using CheckBox form control

    This is the best I can come up with. The main problem is that the checkbox does not know where it is or even what its name is. You can link a checkbox to a cell and when you click on it, the cell toggles between True and False. The problem is that even though the linked cell value changes, it is not detected as a change in the change event code. Normally when code changes the value in a cell you wind up in an infinite loop unless you turn off events.

    So each check box is assigned its own subroutine which passes parameters to the code that turns the series on and off. The checkbox subroutines call the main subroutine with two parameters: Series Number and Row Number that contains the checkbox. The main subroutine expects to find the linked cells in Column O. Change this if your setup is different.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    10-31-2014
    Location
    India
    MS-Off Ver
    2007
    Posts
    11

    Re: Chart Series Hide/Unhide using CheckBox form control

    Thanks.
    This is what I needed.
    Although I do not understand macro code at all, I will try to use it in my chart with modifications.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hide a Chart with Form Control Buttons
    By shamsul in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-10-2016, 08:16 AM
  2. Control display of chart using checkbox (form control)
    By Jonno1 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-09-2016, 09:43 AM
  3. [SOLVED] User form/checkbox hide/unhide rows based on cell value
    By ldonis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-12-2014, 11:35 AM
  4. [SOLVED] Hide/Unhide Rows based on Combo Box (form control)
    By JimExcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2013, 09:38 AM
  5. Hide Chart Series using Checkbox
    By Macdave_19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-09-2008, 06:52 AM
  6. Chart Hide/Unhide Series
    By proton in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2006, 12:35 AM
  7. [SOLVED] Hide/Unhide Form Control
    By qwerty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-06-2006, 01:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1