View Single Post
  #24  
Old February 5th, 2008, 09:25 PM posted to microsoft.public.word.pagelayout
Jay Freedman
external usenet poster
 
Posts: 9,488
Default Equation line numbers

You can go one step further for convenience. The Alignment Tab dialog box
always opens with the Center option chosen. If you want a Quick Access
Toolbar button specifically for an alignment at the right margin, without
needing to show the dialog, paste this macro into Normal.dotm and make a
button to run it:

Sub RightAlignTab()
WordBasic.InsertAlignmentTab Alignment:=2, Relative:=0, Leader:=0
End Sub

Variations:

Alignment:=1 is Center and Alignment:=2 is Right. (Alignment:=0 is Left, but
that's the same as having no tab at all. shrug)

Relative:=0 is relative to Margin and Relative:=1 is relative to Indent.
(Apparently the Center alignment relative to Indent ignores any right
indent, and centers between the left indent and the right margin. The Right
alignment, regardless of the Relative setting, always aligns on the right
indent.)

The Leader numbers in the macro are all 1 less than the leader numbers that
appear in the dialog (0 = None, 1 = dots, etc.).

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

Bob Mathews wrote:
That's good info. Thanks Suzanne.


Apparently it's called an "alignment tab." I found something at
http://www.zdnetasia.com/techguide/o...2036053,00.htm.

There's a MS page at
http://office.microsoft.com/en-us/wo...341341033.aspx.
From casual reading, you might get the impression that they
work only in headers and footer, as that's the context in which
they're presented, but the latter page concludes:

"The Alignment Tab dialog box is only accessible when viewing
the Header & Footer Tools, but they can be utilized anywhere
in your document by adding Insert Alignment Tab to your Quick
Access Toolbar. To do so, right-click Insert Alignment Tab and then
click Add To Quick Access Toolbar."