+ Reply to Thread
Results 1 to 5 of 5

VBA coding Sctaeer chart - xlMarkerStyle

  1. #1
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    16

    VBA coding Sctaeer chart - xlMarkerStyle

    Hello,

    A few months back, I was working on a scatter chart and the coding behind it – and this forum really helped me.
    Lately I have been working on this spread sheet, trying to improve it and I am facing a few difficulties.

    Previously, I was working on matching data to specific markers and using a coding to do so. For each point on the scatter chart you could choose a "type" from the dropdown menu and each "Type" option had a shape appointed to it. Depending on the "type" option selected the specific shape would appear on the chart.

    I have added 2 additional “Types” to the drop down menu and therefore was seeking two new markers and adding them to the coding.
    Is there any additional xlMarkerStyle that I could use – I tried “Automatic” and “Picture” but when I save and try it on the drop-down menu no markers appear on the scatter chart… the problem might be just me not editing the coding properly…

    Please let me know if you have a solution to my problem,

    Thank you very much in advance,
    Prue
    Attached Files Attached Files

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

    Re: VBA coding Sctaeer chart - xlMarkerStyle

    You have exhausted the built-in marker types.
    You can use shapes as markers. I have added 2 shapes, star and cloud, plus the additional code to format and paste the shape to the marker.
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: VBA coding Sctaeer chart - xlMarkerStyle

    Thank you very much Andy for your help and responsiveness!
    This great. Is there a specific way to add a marker if I went through the list predifines ones. I just map your coding?

    Very best,
    Prudence

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

    Re: VBA coding Sctaeer chart - xlMarkerStyle

    to add new custom ones insert the shape on the sheet and change it's name.
    Use the new name to reference that shape in the code as per the 2 extra items I have already included.

  5. #5
    Registered User
    Join Date
    08-03-2012
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: VBA coding Sctaeer chart - xlMarkerStyle

    Okay great this is a useful tip! thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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