Thread: line numbers
View Single Post
  #13   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default line numbers

Yes.

If you have an appropriate language enabled (e.g., Arabic (Iraq)) then you
can use a macro to set specific section direction. For example the
following macro will display line numbers in the right margin in secton 1.

Sub ScratchMaco()
ActiveDocument.Sections(1).PageSetup.SectionDirect ion =
wdSectionDirectionRtl
End Sub

Note: If you do not have an appropriate language enabled (I defer to Mr.
Daniels' expertise on what other languages may or may not be appropriate) or
subsequently disable the language then this setting will suppress the
display of line numbering. To restore them you would need to set the
direction back to left to right using:

Sub ScratchMaco()
ActiveDocument.Sections(1).PageSetup.SectionDirect ion =
wdSectionDirectionLtr
End Sub

Peter T. Daniels wrote:
I'm typing a page of Arabic. Is there any way to get the line numbers
to appear in the right margin (i.e., at the beginnings of the lines)?
Setting "mirror margins" doesn't do it.


--
Greg Maxey

See my web site http://gregmaxey.mvps.org
for an eclectic collection of Word Tips.