Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips
Printing On Both Sides of the Paper
Turning Off AutoComplete for Dates
Understanding Auto Line Spacing
Adding Comments to Your Document
Conditional Calculations in Word
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
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!