Rename Graph

KenHigg

Registered User
Local time
Today, 09:40
Joined
Jun 9, 2004
Messages
13,327
How do I change the chart title in a graph in a form with vb?
 
Never mind - Got it:

Dim MyGrafObj As Object

Set MyGrafObj = Me![Graph1].Object.Application.Chart

MyGrafObj.ChartTitle.Text = "New Chart Title"
 
Ken,

Is there more code than posted? I am trying to rename my Access Graph and am having difficulty. Are there any references needed for this?
When I try to run the report I get an alarm saying "The bound or unbound object frame you tried to edit does not contain an OLE object."

Any help would be great!
 
Maybe you need to enable Microsoft Graph 11.0 Object Library in your references - ?
 

Users who are viewing this thread

Back
Top Bottom