Results 1 to 7 of 7

Thread: Remove or Hide or Delete Negative Bubbles

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    14
    Rep Power
    0

    Remove or Hide or Delete Negative Bubbles

    Hi Rajan:

    Hope you are doing good.

    In a data sheet we have negative values. I dont wanna see them in my bubble chart. Please let me know how to eliminate the negative bubble in the Bubble Chart.

    Please find attached the dummy sheet (Data and Chart)

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Member Rajan_Verma's Avatar
    Join Date
    Sep 2011
    Posts
    81
    Rep Power
    14
    hi,
    what kind of solution do you need,VBA? Without VBA?

  3. #3
    Junior Member
    Join Date
    Sep 2011
    Posts
    14
    Rep Power
    0
    Quote Originally Posted by Rajan_Verma View Post
    hi,
    what kind of solution do you need,VBA? Without VBA?
    VBA only ie for active chart if there are any bubbles with negative values delete or hide them

    Regards

  4. #4
    Member Rajan_Verma's Avatar
    Join Date
    Sep 2011
    Posts
    81
    Rep Power
    14
    i have seen that file.. You just need to replace Negative values by #N/A, All negative points will be hidden on chart

    Thanks
    Rajan

  5. #5
    Junior Member
    Join Date
    Sep 2011
    Posts
    14
    Rep Power
    0
    Yes Rajan!, Also please dont use Hide/Unhide alogrithm.

    Thanks

  6. #6
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Try this

    Code:
    Sub HideBubble()
    
        Dim obj As Series, intI As Integer
        
        For Each obj In ActiveSheet.ChartObjects(1).Chart.SeriesCollection
            For intI = 1 To obj.Points.Count
                If obj.Values(intI) < 0 And obj.XValues(intI) < 0 Then
                    obj.Points(intI).Format.Fill.Visible = msoFalse
                End If
            Next intI
        Next obj
        
    End Sub
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  7. #7
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Also, please ensure you start a new thread for a new query, unless it is exactly in line with what was being discussed. You may add a reference to the original thread if need be. I've moved this to a new thread.
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

Similar Threads

  1. Replies: 13
    Last Post: 06-10-2013, 09:05 AM
  2. Remove Special Characters From Text Or Remove Numbers From Text
    By Excel Fox in forum Excel and VBA Tips and Tricks
    Replies: 5
    Last Post: 05-31-2013, 04:43 PM
  3. Correcting “Negative” Time Difference Calculation in Excel
    By Transformer in forum Tips, Tricks & Downloads (No Questions)
    Replies: 0
    Last Post: 05-17-2013, 12:32 AM
  4. VBA To Hide And Unhide Rows
    By paul_pearson in forum Excel Help
    Replies: 10
    Last Post: 05-08-2013, 03:14 AM
  5. Delete Remove Rows By Criteria VBA Excel
    By marreco in forum Excel Help
    Replies: 5
    Last Post: 12-20-2012, 05:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •