requested operation is presently disabled

R

Rob Kraft

I am trying to modify the Text property of a shape within a shape. I
get an error message that the 'requested operation is presently
disabled'. I also notice that the propety IsOpenForTextEdit = false.
How do I set this to true with VBA?

Particularly, I am working with the UML stencil, Static Structure
diagram.
I have code that can create a class and give it a name, but I am
unable to add attributes. The Class Shape has a collection of 8
shapes. The 6th of these shapes is always name Attributes. I can use
the Visio interface to change the Text properties of Attributes, but
not VBA.

Any ideas?

shpObj.Name = "MyClass"
shpObj.Text = "MyClass"
shpObj.Shapes("Attributes").Text = "-Attrib1 : Boolean" 'This line
gets the error.
 

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