bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Formatting > Tabs and Tab Stops > Setting Decimal Tabs in a Table Using the Keyboard

Setting Decimal Tabs in a Table Using the Keyboard

Summary: Most people use the mouse to set tab stops in the paragraphs in a table. If you prefer to not use the mouse, then you’ll be interested in the techniques for keyboard tab setting, as described in this tip. (This tip works with Microsoft Word 97, Word 2000, Word 2002, Word 2003, and Word 2007.)

If you love using the keyboard, you may wonder if there is a way to set decimal tabs in a table using the keyboard. Unfortunately, there is no simple, fast keystroke to set the decimal tabs. The best way is to use the regular accelerator keys that Word uses. You would follow these steps:

  1. If you want to set the tab stop in each cell of the current column, press Alt+A, C (Word 97) or Alt+A, C, T (later versions of Word). This selects the current table in the column.
  2. Press Alt+O, T. This displays the Tabs dialog box. (Click here to see a related figure.)
  3. Type the measurement for where the tab should appear.
  4. Press Alt+D to indicate this is a decimal tab.
  5. Press Alt+S to set the tab.
  6. Press Enter to dismiss the Tabs dialog box.

If you would rather not go through such an easy-to-remember process (grin), then you can also create a macro that will do the trick, and assign the macro to a shortcut key. The following is an example of a simple VBA macro that would do the job:

Sub SetDecimal()
    Dim MyTab As String

    MyTab = InputBox("Location (inches):", "Set Decimal Tab")
    If Val(MyTab) > 0 Then
        With Selection.ParagraphFormat.TabStops
            .ClearAll
            .Add Position:=InchesToPoints(Val(MyTab)), _
                Alignment:=wdAlignTabDecimal, _
                Leader:=wdTabLeaderSpaces
        End With
    End If
End Sub

This macro, which should be run after the cell or column is selected, clears all the existing tabs in the selection, and then prompts the user to enter a value for the new tab stop.

Tip #1912 applies to Microsoft Word versions: 97 | 2000 | 2002 | 2003 | 2007


Save Time! WordTips has been published weekly since early 1997. Past issues are available in convenient WordTips archives. Have your own enhanced archive of WordTips at your fingertips, available to use at any time!
 
Check out WordTips Archives today!

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)