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.
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 attribute’s 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 resize the shape’s text block as much 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.