Rotate Textboxes in Word

I have multiple textboxes on my word document. How can i programmatically go from textbox to textbox and rotate each individual textbox?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you mean another way besides the "change text direction" option?
Chris BRetiredCommented:
Record a macro whilst doing the text direction change, then edit it to see how it was done. The text direction bit looks like this - Selection.Orientation = wdTextOrientationUpward

Chris B
just a note to clarify, you won't be able to rotate the text boxes just change the direction of the text within them.
I don't think you can do it programmatically. Macros require that they 'know' the object that they're working on. You will need to select all the text boxes and then run the macro, which kind of defeats the object of running a macro.

You could select the first box, perform the rotation operation via the menus, then select the remainder of the boxes and press F4. (This key is the 'repeat previous command key')
Chris BRetiredCommented:
A Macro can select the text boxes one after the other, then rotate the text - eg.

ActiveDocument.Shapes("Text Box 1").Select
    Selection.Orientation = wdTextOrientationUpward
    ActiveDocument.Shapes("Text Box 2").Select
    Selection.Orientation = wdTextOrientationDownward
    ActiveDocument.Shapes("Text Box 3").Select
    Selection.Orientation = wdTextOrientationUpward
    ActiveDocument.Shapes("Text Box 4").Select
    Selection.Orientation = wdTextOrientationDownward

So if you store this in, it would work with any doc containing text boxes, and give you a choice of individual directions or to miss particular boxes, but if you want to do them all the same every time, MBarbers comment will do it.

Chris B

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Word

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.