Rotate a Graphic Using the Keyboard

Written by Allen Wyatt (last updated May 2, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

Don knows how to rotate a graphic using the mouse. He wonders, though, if there is a way to rotate a graphic using nothing but the keyboard.

The short answer is "not really." The reason for this is because before you can rotate a graphic you need to select it, and selecting can only be done (as far as I can tell) by using the mouse. If you've just clicked on the graphic to select it, your mouse pointer is already very close to the rotation handle, so you might as well use it to do the rotation.

That being said, after you select the graphic (again, using the mouse) you could use the Alt key, in conjunction with the left and right arrow keys, to rotate the graphic in 15-degree increments in the direction consistent with the arrow key used.

If you want a bit finer control over the rotation, you can follow this convoluted set of steps:

  1. Select the graphic.
  2. Press and release the Alt key. Word displays a set of shortcut indicators next to the ribbon tools.
  3. Press JD to select the Format tab of the ribbon.
  4. Press AY to activate the Rotate tool.
  5. Press R or L to rotate the graphic 90 degrees right or left.
  6. If you prefer, press M to display the options that allow you to specify a rotation angle directly.

You could also set up a keyboard shortcut to directly display the options that appear when you press M. Follow these steps:

  1. Display the Word Options dialog box. (In Word 2007 click the Office button and then click Word Options. In Word 2010 or a later version display the File tab of the ribbon and then click Options.)
  2. At the left side of the dialog box click Customize (Word 2007) or Customize Ribbon (later versions of Word). (See Figure 1.)
  3. Figure 1. The Customize Ribbon options of the Word Options dialog box.

  4. Click the Customize button, near the bottom of the dialog box. Word displays the Customize Keyboard dialog box. (See Figure 2.)
  5. Figure 2. The Customize Keyboard dialog box.

  6. In the list of Categories, choose All Commands.
  7. In the list of Commands, choose MoreRotationOption.
  8. Place the insertion point in the Press New Shortcut Key box.
  9. Press the shortcut key you want to use, such as Alt+R.
  10. Click Assign.
  11. Close the dialog boxes.

Now, after selecting a graphic, you can jump right to the rotation options by pressing the shortcut key you defined in step 7.

Of course, you could also create a set of macros to do the rotations for you and then assign those macros to a set of keyboard shortcuts. The following consists of four macros, three of which can be used to easily rotate a graphic. The RotateCW1 and RotateCW5 macros rotate a graphic clockwise either 1 or 5 degrees. The RotateCCW5 macro rotates a graphic 5 degrees counterclockwise. All three graphics rely on the RotateShape macro to do the majority of the work.

Sub RotateCW1()
    RotateShape (1)
End Sub
Sub RotateCW5()
    RotateShape (5)
End Sub
Sub RotateCCW5()
    RotateShape (-5)
End Sub
Sub RotateShape(Degrees As Single)
    With Selection
        If .ShapeRange.Count = 0 And .Range.ShapeRange.Count = 0 Then
            MsgBox "No shape selected"
            Exit Sub
        End If
        If .ShapeRange.Count > 0 Then
            .ShapeRange.IncrementRotation Degrees
        Else
            .Range.ShapeRange(1).IncrementRotation Degrees
        End If
    End With
End Sub

Again, assign the RotateCW1, RotateCW5, and RotateCCW5 macros to shortcut keys and you can then directly rotate a selected graphic as desired.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (12606) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Creating an Organization Chart

The graphics capabilities of Excel are flexible enough that you can use the program to create organization charts. Here's ...

Discover More

Defining Shortcut Keys for Symbols

Do you need to use symbols frequently in your Excel data? The common way to insert them is by using the Symbol dialog ...

Discover More

Mouse Click Event in VBA

Need to know if a particular cell is clicked with the mouse? Excel has no particular event handler for clicking in this ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Default Picture Location

When you insert pictures into a document, the first folder that Word opens up is normally the My Pictures folder. You can ...

Discover More

Understanding Grayscale Images

Word allows you to easily add images to your documents. For documents intended for monochrome printers, grayscale images ...

Discover More

Understanding Page Border Art

Add some artwork around the border of your printed page, and you may not know where that artwork comes from. You may also ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 4 + 8?

2021-03-08 23:04:26

Aaren

Hello Allen. I got some with the macro. After inserting the picture, I try use your macro to rotate the picture. It shows error 4198. However, if I rotate the picture manully before using your macro, it works. Why would it happen? Thank you so much for your attention.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.