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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VBA to Dynamically Format a MS Graph in a Report

Status
Not open for further replies.

jaaret

Instructor
Jun 19, 2002
171
Can VBA be used with OpenReport to format MS Graph elements, for instance changing the line color or the marker style of a data series?

Jaaret
 
I would try set some code in the On Format event of the report section containing the graph control. To get the proper syntax, I usually create a similar graph in Excel. I turn on the macro recorder and perform the property updates. Then turn off the recorder and view the code that is created. You can then copy and paste the code into your Access report and make some minor modifications.

Duane MS Access MVP
Now help me support United Cerebral Palsy
 




Hi,

Yes. Check out the SeriesCollestion Collection and the Points collection.

Skip,
[sub]
[glasses]Did you hear what happened when the OO programmer lost his library?...
He's now living in OBJECT poverty![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top