+ Reply to Thread
Results 1 to 2 of 2

Bubble chart - help with macro set up for auto adding series

  1. #1
    Registered User
    Join Date
    05-21-2014
    Posts
    1

    Bubble chart - help with macro set up for auto adding series

    Hi,

    I have dynamic bubble chart which is sourcing data from fixed range using 4 collumns (X;Y;size and name) and I want to have as a data label Name of the series. I am looking for a way how to add multiple series into the chart using VBA, bcs I d like to add 100+ series in one time and I dont want to do that manualy.

    I recorded macro for first two series but everytime I tryed to edit it by myself I failed. I will be very thankfull if someone help me with this.


    ActiveSheet.ChartObjects("Chart 2").Activate
    ActiveChart.SeriesCollection.NewSeries
    ActiveChart.SeriesCollection(1).Name = "='Graf data'!$B$4"
    ActiveChart.SeriesCollection(1).XValues = "='Graf data'!$C$4"
    ActiveChart.SeriesCollection(1).Values = "='Graf data'!$D$4"
    ActiveChart.SeriesCollection(1).BubbleSizes = "='Graf data'!$E$4"
    ActiveChart.SeriesCollection.NewSeries
    ActiveChart.SeriesCollection(2).Name = "='Graf data'!$B$5"
    ActiveChart.SeriesCollection(2).XValues = "='Graf data'!$C$5"
    ActiveChart.SeriesCollection(2).Values = "='Graf data'!$D$5"
    ActiveChart.SeriesCollection(2).BubbleSizes = "='Graf data'!$E$5"



    Attached you can see just the data range with made up figures - bcs of the sensitive data.

    Thanks a lot

    All the best from Prague (CZ)

    Jakub
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: Bubble chart - help with macro set up for auto adding series

    Hi Jakub

    Why add each point as a different series?

    You can add all the points in just 1 series, in the case of your file,

    X Values: ='Graf data'!$C$4:$C$32
    Y Values: ='Graf data'!$D$4:$D$32
    Bubble size: ='Graf data'!$E$4:$E$32

    Then just add the labels with the values in column B.

+ 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. [SOLVED] Iterate series creation in bubble chart
    By SteHB210 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-18-2013, 09:00 AM
  2. Add labels to a bubble chart with multiple series
    By wahlberg in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-19-2013, 10:19 PM
  3. Bubble Chart - Different color per series
    By Nadine Klug in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-16-2012, 09:51 AM
  4. Bubble Chart - Multiple Series
    By David Brown in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 11-19-2011, 12:33 PM
  5. Bubble chart will not pick X series
    By lupocattivo in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-26-2005, 12: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