Microsoft Office Tutorials and References
In Depth Information
Tables: Changing the Tab Direction
' * * * * *¶
Sub SetTabIndent(rngSel As Word.Range, indnt As Single)¶
rngSel.Paragraphs.TabStops.Add _¶
Position:=rngSel.Information( _¶
wdHorizontalPositionRelativeToTextBoundary) _¶
+ indnt¶
End Sub¶
Consider what to place as a separator between the number and the paragraph
text. By default, the macro uses a point (period, dot) followed by a Tab.
Substitute any character for the assignment to ‘separatorChars’. For example,
to use a parenthesis followed by a space:
separatorChars = ") "¶
Using a tab results in the macro setting a tab stop at .3 inches from the original
left indent position of the text. This setting can be changed. For example, to
have the text start at .5 inch from the left edge:
SetTabIndent rngSel, InchesToPoints(0.5) ¶
Select the paragraphs to be numbered in reverse order, and run the macro.
The result of this macro is static text. For more numbering solutions, visit
Tables: Changing the Tab Direction
This macro changes the tab direction in tables so that you can tab down, then
across, instead of left to right.
Example file:
Scenario: In Word, the selection always moves with the
flow of the text: across, then down. The same is true when
Tab is pressed in a table: the selection moves across the
row, then down to the next column. To change this to first
move down the column, then across to the next column, as
when reading text columns, a macro like the following is
Search JabSto ::

Custom Search