Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control bar chart colors with VBA

Status
Not open for further replies.

LScharf

Technical User
Aug 9, 2002
42
US
Hi,
I'd like to set the color of a specific bar in a bar chart in my report. The chart (MSGraph.Chart.8) is dynamic, so I can't edit the color in design view.

I've added this code:

Private Sub GroupFooter0_Format(Cancel As Integer,
FormatCount As Integer)

Me!Graph5.SeriesCollection(1).Points(1).Interior.Color = "yellow"

End Sub

...but it tells me 'run-time error 1004 - can't set the color property of the interior class'.

(Ultimately I'll replace the index (1) with a specific name.)
I'm using Access XP.

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top