M
mcalex
Hi there. Can someone (who's done it before) give me an idea of how
to manipulate a graph through vba. I try to do Record Macro from
powerpoint, but it seems to only create code like:
ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=2.
If I wanted to change the type of graph from (say) bar chart to 3d bar
chart, or change the color of the data series, what would the code
look like?
I've managed to create the chart using
dim shpGraph as Powerpoint.Shape
Set shpGraph = .Shapes.AddOLEObject(ClassName:="MSGraph.Chart",
Link:=msoFalse)
but I can't see any way of manipulating my shpGraph to make it a 3d
bar chart shape with red and yelow data series. Hope I'm making
sense, I'm a bit new to the MS way of doing things.
Thx in advance
mcalex
to manipulate a graph through vba. I try to do Record Macro from
powerpoint, but it seems to only create code like:
ActiveWindow.Selection.ShapeRange.OLEFormat.DoVerb Index:=2.
If I wanted to change the type of graph from (say) bar chart to 3d bar
chart, or change the color of the data series, what would the code
look like?
I've managed to create the chart using
dim shpGraph as Powerpoint.Shape
Set shpGraph = .Shapes.AddOLEObject(ClassName:="MSGraph.Chart",
Link:=msoFalse)
but I can't see any way of manipulating my shpGraph to make it a 3d
bar chart shape with red and yelow data series. Hope I'm making
sense, I'm a bit new to the MS way of doing things.
Thx in advance
mcalex