R
redhorse
Some time ago, I posted a few questions regarding a project to create a shape
properties editor so that I could change the name of a shape while in slide
view. The solution I arrived at works wonderfully for standard autoshapes
(such as rectangles), but when I try to use it on a closed shape drawn with
the freeform tool it fails. From what I can gather, it looks like PowerPoint
doesn't even recognize the freeform shape as a shape at all.
For example, the following will retrieve the name of a standard autoshape,
but will generate an error as if no shape is selected if I use it with a
closed shape drawn with the freeform tool:
ActiveWindow.Selection.ShapeRange(1).Name
Does anyone have any idea how I can programmatically access the properties
of a freeform shape? Does this particular kind of object fall into a
different branch of the PowerPoint object model? It seems to me that it
should work the same way since I can change the fill color and line color of
freeform shapes easily through the PowerPoint GUI.
properties editor so that I could change the name of a shape while in slide
view. The solution I arrived at works wonderfully for standard autoshapes
(such as rectangles), but when I try to use it on a closed shape drawn with
the freeform tool it fails. From what I can gather, it looks like PowerPoint
doesn't even recognize the freeform shape as a shape at all.
For example, the following will retrieve the name of a standard autoshape,
but will generate an error as if no shape is selected if I use it with a
closed shape drawn with the freeform tool:
ActiveWindow.Selection.ShapeRange(1).Name
Does anyone have any idea how I can programmatically access the properties
of a freeform shape? Does this particular kind of object fall into a
different branch of the PowerPoint object model? It seems to me that it
should work the same way since I can change the fill color and line color of
freeform shapes easily through the PowerPoint GUI.