Results 1 to 3 of 3

Thread: Defaul Chart Settings

  1. #1

    Wink Defaul Chart Settings



    Register for a FREE account, and/
    or Log in to avoid these ads!

    Hi Guys

    Everytime I create a line chart I get these big thick lines. I want my charts to look a little less frumpy and cartoon like. How can I create a chart where all the lines are defaulted at 1.25 instead of the current 2.25.

    Thanks
    RM

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    2,195
    Articles
    57
    Blog Entries
    14
    Hi there, and welcome to the forum!

    Agreed, it would be really nice to be able to set defaults that made the charts look better. (Great wording, and couldn't agree more!) Unfortunatley, we don't have a way that I'm aware of to set defaults. I think that would be an awesome add to Excel, but I can't see it happening any time soon.

    In the mean time, you could use a little VBA to change all the lines on a chart to a thinner weight.

    To use this, press Alt+F11
    Find your workbook in the Project Explorer (usually the window on the left)
    Right click your workbook and insert a new module
    Paste the following in the pane that opens up:
    Code:
    Sub MakeThinLines()
        Dim lsc As Long
        With ActiveChart
            For lsc = 1 To 100
                On Error GoTo ExitPoint
                .SeriesCollection(lsc).Format.Line.Weight = 1.25
            Next lsc
        End With
    ExitPoint:
    End Sub
    Close the Visual Basic Editor

    Now, any time you want to reformat a chart in that workbook, Press Alt+f8 and run the "MakeThinLines" macro.

    Hope it helps,
    Ken Puls, FCPA, FCMA, MS MVP (Excel)

    Master your data with Power Query: Purchase your copy of my book M is for Data Monkey today!

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Super Moderator JoePublic's Avatar
    Join Date
    Sep 2011
    Location
    Askew
    Posts
    170
    Articles
    0
    You can kludge it by creating a template chart and use that for your charts. That will allow you to set any formatting you like. However, you need to ensure that the chart you save as a template has enough series on it to cover most of your chart use. If, for example, you create a chart with 3 series formatted the way you want and save it as a template, and then use that for a chart using 4 series, the last series will revert back to Excel's defaults.
    FYI, applying the Module effect on a line chart will reduce the lines to 1.5pt in one click.
    Circumference of a circle = 2πr²



    ²the circle's radius

Tags for this Thread

Posting Permissions

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