Results 1 to 8 of 8

Thread: Create Bubble Chart Automatically

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi,

    Replace the CallAB macro with this one.

    Code:
    Sub CallAB()
        
        On Error Resume Next
        ActiveSheet.ChartObjects.Delete
        On Error GoTo 0
        ActiveSheet.Shapes.AddChart 'For Excel 2007+ Only
        AssignBubbleSource ActiveSheet.ChartObjects(1), ActiveSheet.Range("A1:D5")
        
    End Sub

  2. #2
    Junior Member
    Join Date
    Jul 2012
    Posts
    3
    Rep Power
    0
    Hi,

    The deafult labeling for the chart is "Y Value". I want it to be NameColumn.

    Ive tried several variations of but it crashes. Can you sugget a fix? Thnx

    Code:
        Next lngRow
        With chtBblChart.Chart
            .ChartType = xlBubble3DEffect
            .ApplyDataLabels = xlDataLabelsShowValue [ShowNameSeries]
        
            .SetElement (msoElementPrimaryCategoryAxisTitleAdjacentToAxis) 'For Excel 2007+ Only
            .SetElement (msoElementPrimaryValueAxisTitleRotated) 'For Excel 2007+ Only
            .SetElement (msoElementDataLabelRight) 'For Excel 2007+ Only
            If blnHeader Then
                .Axes(1, 1).AxisTitle.Text = rngChartSource.Cells(1, rngChartSource.Column + FirstColumn).value
                .Axes(2, 1).AxisTitle.Text = rngChartSource.Cells(1, rngChartSource.Column + SecondColumn).value
            End If
        End With
    Last edited by Admin; 08-06-2012 at 04:04 PM.

Similar Threads

  1. Automatically Create Multiple Dynamic Named Ranges Using VBA
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 0
    Last Post: 04-24-2013, 03:49 PM
  2. Bubble Chart
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 1
    Last Post: 09-04-2012, 09:01 AM
  3. Copy Automatically Between Two Worksheets
    By marreco in forum Excel Help
    Replies: 0
    Last Post: 08-27-2012, 04:48 PM
  4. Bubble Sort Function
    By PcMax in forum Excel Help
    Replies: 5
    Last Post: 12-15-2011, 11:12 AM
  5. UDF to Create In-Cell Chart in Excel
    By Admin in forum Download Center
    Replies: 0
    Last Post: 08-13-2011, 09:53 AM

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
  •