I have callouts on graphs. my full code will delete the existing one and add a new one.
but some of my starting graphs dont have existing call outs. this is causing an error in my code when I try to delete the existing callout (before I add the new one).
Please help me get the code right to delete the existing one if it exists...if it does not just go to the next step. I also tried iserror instead of the isempty but got errors on both
but some of my starting graphs dont have existing call outs. this is causing an error in my code when I try to delete the existing callout (before I add the new one).
Please help me get the code right to delete the existing one if it exists...if it does not just go to the next step. I also tried iserror instead of the isempty but got errors on both
VBA Code:
If IsEmpty(ActiveChart.FullSeriesCollection(7).DataLabels.Select) = False Then
ActiveChart.FullSeriesCollection(7).DataLabels.Select
Selection.Delete
End If