From: JD3K on
Does anyone know if it is possible to modify the text within a SmartArt
object through the use of the Office object model?
From: Jay Freedman on
JD3K wrote:
> Does anyone know if it is possible to modify the text within a
> SmartArt object through the use of the Office object model?

No, it isn't possible. That part of the object model is read-only.

You can read the text from an inline object (modifying the index numbers as
necessary) with

ActiveDocument.InlineShapes(1).GroupItems(1).TextFrame2.TextRange.Text

but trying to assign a string to that property fails.

Also, I get various bogus-looking errors if the SmartArt's text wrapping is
anything other than inline and I use the Shapes collection in a similar
statement to try to get the text.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.