
Tips.Net > WordTips Home > Formatting > Tabs and Tab Stops > 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:
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
Great Idea! Word is a tool to get what you really want—printed output. This means you need to make sure that Word works as well as possible with your printer, whether it is sitting on your desk or in a room down the hall.
Check out WordTips: Printing and Printers today!
Uncover how you can master the full potential of printing your documents. Everything you wanted to know about printing and printers, using Word. (more information...)
Ask a Word Question
Make a Comment
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Word2007 Tips
WordTips