Results 1 to 3 of 3

Thread: Change Data Series In Chart Using Drop-Down List

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0

    Change Data Series In Chart Using Drop-Down List

    My workbook has 3 sheets with charts / data in each.....I need to link the charts to the dropdown box so I can choose which chart to view in each sheet. I can view the data series or view each individual data

    Thank you

    Ray

    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA

    https://www.youtube.com/channel/UCnxwq2aGJRbjOo_MO54oaHA
    Attached Files Attached Files
    Last edited by DocAElstein; 10-02-2023 at 12:50 PM.

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Just give the column range that contains the name of the series as DataSeries, and use the following macro (assigned to your dropdown)

    Code:
        Dim objDD As Object
        Dim lng As Long
        Set objDD = ActiveSheet.DropDowns("Drop Down 1")
        lng = objDD.Value - 1
        Application.ScreenUpdating = False
        ActiveSheet.Range("SeriesData").EntireRow.Hidden = (lng <> 0)
        If lng Then
            ActiveSheet.Range("SeriesData").Cells(lng).EntireRow.Hidden = False
        End If
    Check attached file
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    Jun 2013
    Posts
    16
    Rep Power
    0
    Excellent
    Thanks
    Ray

Similar Threads

  1. Adjust The Width Of Column Chart Series
    By rich_cirillo in forum Excel Help
    Replies: 6
    Last Post: 07-05-2013, 06:08 PM
  2. Change Pivot Table Data Source Using A Drop Down List
    By hanishgautam in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 07-05-2013, 09:33 AM
  3. Replies: 1
    Last Post: 05-03-2013, 04:41 PM
  4. Replies: 2
    Last Post: 04-26-2013, 04:59 PM
  5. Color Chart Series VBA
    By Admin in forum Download Center
    Replies: 0
    Last Post: 04-29-2011, 11:26 PM

Posting Permissions

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