Modifying SmartArt Text through Object Model

J

JD3K

Does anyone know if it is possible to modify the text within a SmartArt
object through the use of the Office object model?
 
J

Jay Freedman

JD3K said:
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
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top