Rotate Textboxes in Word

Posted on 2004-11-07
Last Modified: 2008-01-09
I have multiple textboxes on my word document. How can i programmatically go from textbox to textbox and rotate each individual textbox?
Question by:rovi

    Expert Comment

    you mean another way besides the "change text direction" option?
    LVL 28

    Expert Comment

    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
    LVL 3

    Expert Comment

    just a note to clarify, you won't be able to rotate the text boxes just change the direction of the text within them.
    LVL 3

    Expert Comment

    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')
    LVL 28

    Accepted Solution

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    Title # Comments Views Activity
    Office Document Attriburtes 6 53
    Microsoft Paint 10 47
    Text wrapping issue with Word 14 33
    Word 2016 - Overlay portion of screenshot 7 40
    Do you ever need to create a 20 page Word document for some testing purpose? Are you tired of copying & pasting old boring "lorem ipsum" text over and over again, increasing font size and line space in order to make the document 20+ pages long? Look…
    Like many others, we try and discourage users from printing documents unnecessarily and instead send or share them electronically. However, this doesn't always work and documents are still printed. With this simple solution, if the user tries to …
    This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
    This Micro Tutorial well show you how to find and replace special characters in Microsoft Word. This is similar to carriage returns to convert columns of values from Microsoft Excel into comma separated lists.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now