Consulting

Results 1 to 3 of 3

Thread: Solved: Chart formatting with VBA

  1. #1
    VBAX Regular
    Joined
    Jan 2009
    Posts
    89
    Location

    Solved: Chart formatting with VBA

    I am wanting to change the format of a data series. I have tried to record the macro to try and find the code I need that way but all that gets recorded is when I select the series. I do not want the effect the marker style, only change the line style from solid to dash

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    With ActiveChart.SeriesCollection(1).Border
    .ColorIndex = 57
    .Weight = xlThin
    .LineStyle = xlDash
    End With
    [/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 Regular
    Joined
    Jan 2009
    Posts
    89
    Location
    thanks again!

Posting Permissions

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