Consulting

Results 1 to 3 of 3

Thread: Solved: Select chart series with option button

  1. #1
    VBAX Newbie
    Joined
    Mar 2009
    Posts
    2
    Location

    Solved: Select chart series with option button

    I have a large table of data with similar values I would like to chart but it looks too busy.

    Is there a way of using option buttons to select which data series I want to chart?

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    This code toggles it bewteen hidden and not. I used a line chart

    [vba]

    Public Function Series1()
    With ActiveSheet.ChartObjects("Chart 2").Chart

    With .SeriesCollection(2)
    .Border.LineStyle = IIf(.Border.LineStyle = xlNone, xlContinuous, xlNone)
    .MarkerStyle = IIf(.MarkerStyle = xlNone, xlAutomatic, xlNone)
    .Smooth = False
    End With
    End With
    End Function
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Newbie
    Joined
    Mar 2009
    Posts
    2
    Location
    Excellent,

    Thanks for this. I found it works best with check boxes for multiple data series but works a treat

Posting Permissions

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