By the way, this setting is built into automatic numbering, or can be. See
How to create numbered headings or outline numbering in Word 2007 and Word 2010.
When you use numbering, properly attached to styles, you do not type the number, or press the Tab key, that is automatic, as is the placement of the text.