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!

VB/VBA Code to update a MSGraph Value

Status
Not open for further replies.

VickyLeigh

Technical User
Sep 14, 2000
5
0
0
GB
Can anyone tell me the VB Code to update the Maximum and Minimum values for the Y Axis Scale in a graph on a form - I need to be able attach this to the OnChange property of a button on a form if possible.
For the sake of argument I have a form called forma and a graph object on this graph called graph1

Thanks for any help [sig][/sig]
 
Hi
You could try this.

dim appGraph as graph.application

set appGraph = new graph.application

appGraph.Chart.Axes(xlValue).MinimumScale = 10
appGraph.Chart.Axes(xlValue).MaximumScale = 100

Kaspi
 
Can anyone point me to any documentation, help files, books that feature VBA with MSGraph.

I'm using Access 97 and can't see anything about Graph in the Object Browser. Is my installation faulty?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top