Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have this piece of code ActiveSheet.ChartObjects("Chart 5").Activate ab = ActiveChart.SeriesCollection(1).DataLabels.Count Debug.Print "count", ab lup = 10 With ActiveChart.SeriesCollection(1) For a = 2 To ab .DataLabels(a).Caption = Range("A" + CStr(lup)).Value lup = lup + 1 Next End With It is giving RunTime error 1004 on line .DataLabels(a).Caption = Range("A" + CStr(lup)).Value Whereas this code is running fine on all the other charts. Any clue why? TIA |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Geeting Sheet background from Excel object model | Excel Discussion (Misc queries) | |||
Avoid geeting function GETPIVOTDATA | Excel Discussion (Misc queries) | |||
Excel Chart Datalabels | Excel Programming | |||
Datalabels on Scatter | Excel Programming | |||
Converting DataLabels to Numbers | Excel Programming |