• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 974
  • Last Modified:

Bar Chart Bar Color Change in MS Access 2007 Using VBA

I have a chart that was created in Excel 2007 and I want to recreate it in MS Access 2007 (WantChart.jpg).  What I have so far is very close I just cannot get the bars in each series value to be different colors (HaveChart.jpg).  Is there a way to change the bar color without changing the color for the entire series?
Thanks in advance,
Jim
WantChart.JPG
HaveChart.JPG
0
phonepagerfax
Asked:
phonepagerfax
  • 2
  • 2
1 Solution
 
Jeffrey CoachmanCommented:
Open the chart normally, note the color of the bar you want to change
Open the Report/Form in design View
Double-click the chart (Now you are in "Edit Mode")
Right-Click the bar that has the same color as the bar in Normal View
Select: Format data series
Select your desired color....

This is a bit tricky, because if at any point if you click anywhere else, you will throw yourself out of edit mode, and have to double click the chart again

It may take a few tries, ...but after that it becomes easier.

;-)

JeffCoachman
0
 
phonepagerfaxAuthor Commented:
Jeff,

That changes the color for the entire series of bars.  Can I change the color of a single bar in the series?  And can it be done using VBA?

Thanks,

Jim
0
 
Jeffrey CoachmanCommented:
Oh, It was not clear that this was one series...

Then you have to do this:

Open the chart normally, note the color of the bar(s) you want to change
Open the Report/Form in design View
Double-click the chart (Now you are in "Edit Mode")
Click once one of the bars in the series that has the same color as the bar(s) in Normal View (This should highlight all the Points in the series)
Then click again on the ONE bar you want to change
(Now that ONE bar should be highlighted)
Now right-click that single bar and select: Format data POINT
Select your desired color....

Again, it is a little tricky, but with some trial and error , you should be OK

;-)

JeffCoachman
0
 
phonepagerfaxAuthor Commented:
Jeff,

YES!  That is perfect.

You wouldn't happen to have some vba that could do this too?

Thanks,

Jim
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now