K
Karen Hagerman
I am programmatically adding a command button to a document. I've named it
"InsertBodyText" because.....after the body text has been inserted, I want
the user to click the button to indicate 'OK' then I'll delete the button
and save the doc.
I would like to refer to the button by
ActiveDocuments.InlineShapes("InsertBodyText").Delete
but the only thing that works is
ActiveDocuments.InlineShapes(1).Delete
which could definitely become a problem is some other inline shape is added.
Is there any way to refer to an InlineShape with a name instead of a number?
"InsertBodyText" because.....after the body text has been inserted, I want
the user to click the button to indicate 'OK' then I'll delete the button
and save the doc.
I would like to refer to the button by
ActiveDocuments.InlineShapes("InsertBodyText").Delete
but the only thing that works is
ActiveDocuments.InlineShapes(1).Delete
which could definitely become a problem is some other inline shape is added.
Is there any way to refer to an InlineShape with a name instead of a number?