+ Reply to Thread
Results 1 to 3 of 3

Can I associate excel marker style with series name?

  1. #1
    Registered User
    Join Date
    04-15-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Can I associate excel marker style with series name?

    I have never used VBA programming but I have recently come to use Excel 2007 and found that a lot of the old Ecel 2003 operations or are no longer available or require a lot more "clicks" to get what I need. Anyway, because of this I have found myself stumbling into Macros and I have found that they can do some very handy things that i wasnt aware of.

    Firstly, I have found that I can associate series colours (lines and markers) with cell colours using the code below (modified version of something taken from peltiertech.com). I am using xy scatter graphs with a line and this neatly changes all markers and lines to the cell colour defined on sheet "colour" where the range A1:A3 is the list of series used and each cell has been filled to the desired colour. It also changes all markers to squares.

    What I would like is for each of the three data series to have an individual marker style. Can anyone help with this? For example my 3 data series are: Clay, Sand and Silt. i would like the Clay=triangle, Sand = sqaure and Silt=circle (or something similar).

    I have a lot of graphs, plotting different data sets for the same three series and it would save me time if I could run a macro that resulted in the points and lines for Clay (for example) to always be the same.

    Many thanks for your help

    Please Login or Register  to view this content.
    Last edited by Leith Ross; 04-16-2013 at 04:08 AM. Reason: Added Code Tags

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Can I associate excel marker style with series name?

    If you use the same 3 data sets, in the same order, for lots of chart then maybe you could set up a chart template.

    For the code you can test series name

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-15-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Can I associate excel marker style with series name?

    Andy

    Many thanks for that, your script worked perfectly.

    I should have thought about using a template but at the moment the data series are not always in the same order so might not work as neatly as I would hoped.

    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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