Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Experts:
below macro ... .... deletes any data labels from all data series of all charts on the active worksheet. I wonder whether the macro could check at the beginning ... .... for the existence of any data labels (1 to n) and if there are none at all come up with a msgbox telling the user ('All data labels have already been deleted!'). Help is much appreciated.Thank you very much in advance. Regards, Andreas Sub DataLabels_Remove() Dim ChtObj As ChartObject Dim i As Integer Dim ser As Series i = 0 For Each ChtObj In ActiveSheet.ChartObjects With ChtObj.Chart For Each ser In .SeriesCollection ser.ApplyDataLabels (xlDataLabelsShowNone) Next ser End With Next End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Range existence check | Excel Programming | |||
Check for existence | Excel Discussion (Misc queries) | |||
VBA to check for existence of a DSN | Excel Programming | |||
How do I check for existence of a worksheet? | Excel Worksheet Functions | |||
Code to check existence | Excel Programming |