Editing and resizing the textbox of a Visio 2010 shape

Editing, resizing and rotating the textbox of a Visio shape can be tricky until you discover the Text Box Tool which lets you manipulate the text box a the selected shape.  It can be additionally challenging finding this function in the Visio 2010 ribbon but its on the ribbon Home Tab near the Pointer tool.  You can also select it with Ctrl-Shift-4.

Where it gets fun is that some shapes have protections on their text boxes that stop you moving or resizing the shapes text box.   I have generally seen this behaviour on shapes that come from inbuilt stencils e.g. the Active Directory stencil group.

It took me a while to work out where to change all this for a shape so that you can actually manipulate a shape’s text box and the secret is to edit the shape’s shapesheet.  But where do you find the shapesheet?  Its under the Developer Tab (which may not even be visible by default).

So first thing to do is ensure that the Developer Tab is visible by customizing the Ribbon and checking the Developer Check Box:

There is also guidance from Microsoft here about turning on the Developer Tab to get visibility to the shapesheet.

http://office.microsoft.com/en-us/visio-help/what-happened-to-the-shapesheet-HA101852138.aspx

So now under the Developer Tab there is a Show Shapesheet button which lets you choose either the shape sheet for the selected shape, the current page or the whole document.

So on this PC shape from the Active Directory Stencil you can’t move or resize the text box because it is “guarded” with a formula in an attribute.  We need to find and change the formula in order to be able to manipulate the text box.   So we need to display the shapesheet to do this.

The shapesheet is full of all sorts of attributes that can be edited and adjusted as required but its not easy to know what to change and what the effect will be, so that’s where trial and error can be fun.  Once you display the shape’s shapesheet scroll down the shapesheet to the section on Text Transform and you will find some attributes called TxtWidth, TxtHeight, TxtPinX, and TxtPinY.  These attributes contain the  “GUARD” formulas that are preventing size manipulation of the shape’s text block.

Selecting an attributes value will display the full formula on a line below the ribbon.  On this line you can edit the formula to remove the word GUARD at the start of the formula and then click on the green arrow.  Do this on all four attributes that have GUARD in them and then you can move and rezise the shape’s text block as mauch as you like.

I’m not sure why it’s considered necessary to protect the text block on these shapes but not on others but at least there is a way of adjusting it of you need to.

That only took me about 5 hours to work out.

 

 

 

 

About these ads
This entry was posted in Uncategorized. Bookmark the permalink.

3 Responses to Editing and resizing the textbox of a Visio 2010 shape

  1. Anon says:

    Saved me 5 hours, thanks!

  2. JoAnn says:

    Saved me 4 hours. Thank you! ;-)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s