Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails
Sub CleanUpChartLabels() Dim iPts As Integer Dim nPts As Integer Dim aVals As Variant Dim srs As Series Dim myChtObj As ChartObject If msgbox("Would you like to delete 0% datalabels? ... " & vbCrLf & _ "... i.e. all Data labels featuring just 0% of the total count of " & ActiveSheet.ChartObjects.Count & " Charts will be deleted?", vbQuestion + vbYesNo, "0% Datalabels") = vbNo Then Exit Sub End If For Each myChtObj In ActiveSheet.ChartObjects With myChtObj.Chart For Each srs In .SeriesCollection With srs If .HasDataLabels Then nPts = .Points.Count ' i = i + 1 aVals = .Values For iPts = 1 To nPts If aVals(iPts) = 0 Then .Points(iPts).HasDataLabel = False End If Next End If End With Next End With Next End Sub
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
13 Experts available now in Live!