+ Reply to Thread
Results 1 to 6 of 6

XY charts: Change formats of lines/symbols for multiple datasets

  1. #1
    Registered User
    Join Date
    08-28-2019
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    9

    XY charts: Change formats of lines/symbols for multiple datasets

    Hello

    I have say 200 datasets... all in one xy chart. I use filter on the database to select a subset of the data to visualize the data I want.

    The first 100 I would like to be solid lines, the last 100, dashed..

    I used the VBA code below to have all weights the same.

    Can this VBA code be modified to:

    a) have a counter to do the first 100 graphs with solid lines and the next 100 graphs with dashed lines
    b) is it possible to have the same VBA macro apply the same symbol for the first 100 and a different symbol for the next 100
    c) change all symbols to have a black outline and change the size of all symbols ( I am picky about my symbols

    Thanks in advance

    A Canadane

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 08-28-2019 at 05:25 PM. Reason: Please use code tags!

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: XY charts: Change formats of lines/symbols for multiple datasets

    Hello, bonjour,

    Here's a small example that you can play with :

    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

  3. #3
    Registered User
    Join Date
    08-28-2019
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    9

    Re: XY charts: Change formats of lines/symbols for multiple datasets

    Quote Originally Posted by GC Excel View Post
    Hello, bonjour,

    Here's a small example that you can play with :

    Please Login or Register  to view this content.


    Merci beaucoup !!!

    Almost perfect ! Could it be arranged that the outline of the symbols in the second half is solid and not dashed. Because dashed was specified, it applied the dashed line also to the outline of the symbols

    M

    Canadane

  4. #4
    Registered User
    Join Date
    08-28-2019
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    9

    Re: XY charts: Change formats of lines/symbols for multiple datasets

    Hi Again ...

    Alternatively, I could live with having no outline at all for all markers ...

    How could I do that ?

    Thanks

    A Canadane

  5. #5
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,412

    Re: XY charts: Change formats of lines/symbols for multiple datasets

    Hello,

    Ok, see below. Code is slightly modified. I forgot that when usine the .Format.Line property, it applies to be the marker and the connecting line.
    To only change the connecting line, you must use the .Border.LineStyle property.

    As you can see in the code below, you can play with a couple parameters values to show the marker line or not...
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    08-28-2019
    Location
    Montreal
    MS-Off Ver
    2013
    Posts
    9

    Re: XY charts: Change formats of lines/symbols for multiple datasets

    Hello again

    It still is not working properly. The borderline of the second set of data is still dashed. For now, I can live with setting both sets of symbols to .MarkerForegroundColorIndex = xlNone.

    I did however add .Border.Weight = xlMedium as we lost control of the line thickness in the second macro

    Regards,

    Canadane

+ 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. Symbols and lines change color when I reorder data sets
    By geckoman in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 08-03-2018, 05:18 PM
  2. Replies: 6
    Last Post: 02-23-2015, 03:34 PM
  3. Conditional Formats using Symbols
    By Azad in forum Excel General
    Replies: 12
    Last Post: 10-03-2010, 02:21 PM
  4. Excel 2007 : Custom cell formats - time symbols?
    By Scott S. in forum Excel General
    Replies: 1
    Last Post: 05-28-2010, 12:48 AM
  5. [SOLVED] XL2K: Z origin (floor) on column charts defaults to non-zero for certain datasets
    By Alex Rast in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-24-2006, 03:10 PM
  6. [SOLVED] Change colour of bars/lines in charts when data in rows/colums
    By RodP in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-27-2005, 01:05 PM
  7. [SOLVED] Can I format data lines in multiple charts?
    By colleen91076 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-07-2005, 06:05 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