A
Alan
Can anyone help with me please - been scratching my head for over a week now
- I am trying to colour stacked bar charts dependant on a set of different
variables using the series collection property struggling to work out why I
continually get
Runtime Error '1004'
Unable to get the SeriesCollection property of the chart class
although when I select Debug and F5 the code runs and the chart is displayed
as expected.
I am using a number of case statements to select the colours an extract of
which is below
With rstAllTimes
With Forms!SearchForm.Graph27
Select Case rstAllTimes.Fields("Status")
Case Is = "Working"
.SeriesCollection(i).Border.Color = vbBlack
.SeriesCollection(i).Interior.Color = 26367
'MsgBox "CL04 Colour orange"
Case Is = "Break"
.SeriesCollection(i).Border.Color = vbBlack
.SeriesCollection(i).Interior.Color = vbBlack
- I am trying to colour stacked bar charts dependant on a set of different
variables using the series collection property struggling to work out why I
continually get
Runtime Error '1004'
Unable to get the SeriesCollection property of the chart class
although when I select Debug and F5 the code runs and the chart is displayed
as expected.
I am using a number of case statements to select the colours an extract of
which is below
With rstAllTimes
With Forms!SearchForm.Graph27
Select Case rstAllTimes.Fields("Status")
Case Is = "Working"
.SeriesCollection(i).Border.Color = vbBlack
.SeriesCollection(i).Interior.Color = 26367
'MsgBox "CL04 Colour orange"
Case Is = "Break"
.SeriesCollection(i).Border.Color = vbBlack
.SeriesCollection(i).Interior.Color = vbBlack