Home |
Search |
Today's Posts |
|
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
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. |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Is your text direction set to: right-to-left?
"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. . |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Paragraph by paragraph; Text Direction (the button on the Home tab)
can't be included in a paragraph style. If there's a way to set Text Direction for a section, I didn't find it in Page Setup. On Nov 1, 12:50*am, Guy Lydig wrote: Is your text direction set to: right-to-left? "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. |
#4
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Mr. Daniels,
I don't have "support for ... languages" enabled so I didn't test. However this might help you: Change paragraph direction The feature or some of the options described in this Help topic are only available if support for right-to-left (right-to-left: Refers to keyboard settings, document views, user interface objects, and the direction in which text is displayed. Arabic and Hebrew are right-to-left languages.) languages is enabled through Microsoft Office Language Settings. 1.. Place the insertion point in the paragraph that you want to change, or select several paragraphs. 2.. Do one of the following: a.. To have text begin from the left, click Left-to-Right on the Formatting toolbar (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, press ALT and then SHIFT+F10.). a.. To have text begin from the right, click Right-to-Left on the Formatting toolbar. When you change the paragraph direction, Microsoft Word leaves justified and centered text as it is. In the case of left-aligned or right-aligned text, Word flips the alignment to its opposite. For example, if you have a left-to-right paragraph that is right aligned, such as the date at the top of a letter, clicking Right-to-Left results in a right-to-left paragraph that is left aligned. That being said, and ICBW, based on what appears to be avialabe programatically, Line Numbers can only be positioned in the left margin: Sub ScratchMaco() With ActiveDocument.Sections(1).PageSetup.LineNumbering .Active = True .CountBy = 5 'DistanceFromText: Returns or sets the distance (in points) between the right edge _ 'of line numbers and the left edge of the document text. Read/write Single. .DistanceFromText = 5 End With End Sub As you should see, DistanceFromText is based on "the left edge of the document text." A negative value creates and error. Peter T. Daniels wrote: Paragraph by paragraph; Text Direction (the button on the Home tab) can't be included in a paragraph style. If there's a way to set Text Direction for a section, I didn't find it in Page Setup. On Nov 1, 12:50 am, Guy Lydig wrote: Is your text direction set to: right-to-left? "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. |
#5
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
What did you include there that I didn't already describe? Text
direction is set paragraph by paragraph, and cannot be assigned to a paragraph style, and apparently cannot be assigned section by section, either; and line numbers apparently cannot be placed in the right margin, even with right-to-left text. And something has gone very wrong at the end of your message. On Nov 1, 10:48*am, "Greg Maxey" wrote: Mr. Daniels, I don't have "support for ... languages" enabled so I didn't test. *However this might help you: * * * Change paragraph direction * * * The feature or some of the options described in this Help topic are only available if support for right-to-left (right-to-left: Refers to keyboard settings, document views, user interface objects, and the direction in which text is displayed. Arabic and Hebrew are right-to-left languages..) languages is enabled through Microsoft Office Language Settings. * * * * 1.. Place the insertion point in the paragraph that you want to change, or select several paragraphs. * * * * 2.. Do one of the following: * * * * * a.. To have text begin from the left, click Left-to-Right *on the Formatting toolbar (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, press ALT and then SHIFT+F10.). * * * * * a.. To have text begin from the right, click Right-to-Left on the Formatting toolbar. * * * When you change the paragraph direction, Microsoft Word leaves justified and centered text as it is. In the case of left-aligned or right-aligned text, Word flips the alignment to its opposite. For example, if you have a left-to-right paragraph that is right aligned, such as the date at the top of a letter, clicking Right-to-Left *results in a right-to-left paragraph that is left aligned. That being said, and ICBW, based on what appears to be avialabe programatically, Line Numbers can only be positioned in the left margin: Sub ScratchMaco() With ActiveDocument.Sections(1).PageSetup.LineNumbering * .Active = True * .CountBy = 5 * 'DistanceFromText: Returns or sets the distance (in points) between the right edge _ * 'of line numbers and the left edge of the document text. Read/write Single. * .DistanceFromText = 5 End With End Sub As you should see, DistanceFromText is based on "the left edge of the document text." *A negative value creates and error. Peter T. Daniels wrote: Paragraph by paragraph; Text Direction (the button on the Home tab) can't be included in a paragraph style. If there's a way to set Text Direction for a section, I didn't find it in Page Setup. On Nov 1, 12:50 am, Guy Lydig wrote: Is your text direction set to: right-to-left? "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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. begin 666 default.aspx?AssetID=ZA060445861033 *2DQ,3/CX M^&6/W;6UM2(B(M7@]5J$U,;&QIJ:FBM1G3EJM/\"E2ID%KO#9BN6J2V\W- MS6QL;-C8V$ETPS)7I-'=\V1W\;3[W;]82GZ#X^/F"+W"9+E5M;6]/@]\'! MP2M5KG5U=41$1#0T-,?7]#HZ.G!P-/] `````````````````````````` M`````````````````````````````````"'Y! ``````+ `````5`!0```9V MP(!P2"P:`X"DLE"IO0YC-*!4RKT"L6YD0F-R_3R,5:*4./KC*"&! 8`E2R M1*H`065NP$0)$\+!Q-W`!D:"7Y^`!\B&!V$"@80B4D.%Q82A$J422 I)9I)G$D4%:%]J$LIUA)6JU*K[!67K.QM;:T1[M%00`[ ` end- |
#6
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Mr. Daniels,
Are you off your medications today? After a few days of nearly perfectly delivered posts and replies, each devoid of your characteristic arrogance, I thought that perhaps you had made the turn and would start behaving. Now this. You are the one that asked the question he "Is there any way to get the line numbers to appear in the right margin (i.e., at the beginnings of the lines)?" If you already knew that the answer was no, as I tried to confirm with the VBA demonstration, then why did you ask? Peter T. Daniels wrote: What did you include there that I didn't already describe? Text direction is set paragraph by paragraph, and cannot be assigned to a paragraph style, and apparently cannot be assigned section by section, either; and line numbers apparently cannot be placed in the right margin, even with right-to-left text. And something has gone very wrong at the end of your message. On Nov 1, 10:48 am, "Greg Maxey" wrote: Mr. Daniels, I don't have "support for ... languages" enabled so I didn't test. However this might help you: Change paragraph direction The feature or some of the options described in this Help topic are only available if support for right-to-left (right-to-left: Refers to keyboard settings, document views, user interface objects, and the direction in which text is displayed. Arabic and Hebrew are right-to-left languages.) languages is enabled through Microsoft Office Language Settings. 1.. Place the insertion point in the paragraph that you want to change, or select several paragraphs. 2.. Do one of the following: a.. To have text begin from the left, click Left-to-Right on the Formatting toolbar (toolbar: A bar with buttons and options that you use to carry out commands. To display a toolbar, press ALT and then SHIFT+F10.). a.. To have text begin from the right, click Right-to-Left on the Formatting toolbar. When you change the paragraph direction, Microsoft Word leaves justified and centered text as it is. In the case of left-aligned or right-aligned text, Word flips the alignment to its opposite. For example, if you have a left-to-right paragraph that is right aligned, such as the date at the top of a letter, clicking Right-to-Left results in a right-to-left paragraph that is left aligned. That being said, and ICBW, based on what appears to be avialabe programatically, Line Numbers can only be positioned in the left margin: Sub ScratchMaco() With ActiveDocument.Sections(1).PageSetup.LineNumbering .Active = True .CountBy = 5 'DistanceFromText: Returns or sets the distance (in points) between the right edge _ 'of line numbers and the left edge of the document text. Read/write Single. .DistanceFromText = 5 End With End Sub As you should see, DistanceFromText is based on "the left edge of the document text." A negative value creates and error. Peter T. Daniels wrote: Paragraph by paragraph; Text Direction (the button on the Home tab) can't be included in a paragraph style. If there's a way to set Text Direction for a section, I didn't find it in Page Setup. On Nov 1, 12:50 am, Guy Lydig wrote: Is your text direction set to: right-to-left? "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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. begin 666 default.aspx?AssetID=ZA060445861033 *2DQ,3/CX M^&6/W;6UM2(B(M7@]5J$U,;&QIJ:FBM1G3EJM/\"E2ID%KO#9BN6J2V\W- MS6QL;-C8V$ETPS)7I-'=\V1W\;3[W;]82GZ#X^/F"+W"9+E5M;6]/@]\'! MP2M5KG5U=41$1#0T-,?7]#HZ.G!P-/] `````````````````````````` M`````````````````````````````````"'Y! ``````+ `````5`!0```9V MP(!P2"P:`X"DLE"IO0YC-*!4RKT"L6YD0F-R_3R,5:*4./KC*"&! 8`E2R M1*H`065NP$0)$\+!Q-W`!D:"7Y^`!\B&!V$"@80B4D.%Q82A$J422 I)9I)G$D4%:%]J$LIUA)6JU*K[!67K.QM;:T1[M%00`[ ` end- -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
#7
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
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. |
#8
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
As usual, when all you have is a hammer, everything looks like a nail
The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55*pm, "Greg Maxey" wrote: 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. |
#9
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Mr. Daniels,
You were the one that posted here claiming it didn't exist. Where you blinded by arrogance? I looked before enabling an Arabic language. Hopefully my self admitted ignorance of the world's languages wiil excuse the oversight. Would you like for me to post a picture for the whole world to see or send you an example? Peter T. Daniels wrote: As usual, when all you have is a hammer, everything looks like a nail The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55 pm, "Greg Maxey" wrote: 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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
#10
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
In the middle of the night, Sociopath Maxey began whining to the
newsgroup that I wasn't acknowledging his messages, so he emailed me a document that does indeed contain Arabic text, in a right-to-left section (apparently he failed to read the posting to which he appended this response), that does indeed contain line numbering in the right margin. Extending the sample text to more than 4 lines, I found that it also works with counting every fifth line. This does not explain, however, why the line numbering does not appear on screen at all in my actual file within a right-to-left section containing actual Arabic text, or why when the page is printed, the line numbers do appear -- printed over the text -- inset from the right margin. I experimented with each of these parameters: changing the font from TNR to the one I was using ("Arabic Typesetting"); line numbering in This section only; Next page section break instead of Continuous; narrowing the margins to match those in my document. In each case, line numbering appears properly in Greg's document and not in my document. His document includes the macro for changing section direction, but the macro does not appear to contain a line number command. On Nov 2, 1:05*am, "Greg Maxey" wrote: Mr. Daniels, You were the one that posted here claiming it didn't exist. *Where you blinded by arrogance? I looked before enabling an Arabic language. *Hopefully my self admitted ignorance of the world's languages wiil excuse the oversight. Would you like for me to post a picture for the whole world to see or send you an example? Peter T. Daniels wrote: As usual, when all you have is a hammer, everything looks like a nail The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55 pm, "Greg Maxey" wrote: 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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. -- Greg Maxey See my web sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips.- |
#11
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Mr. Daniels,
Lacking your skills in reading for content vice context and not knowing what people really mean by what is unsaid, is all this gibberish an admission that what you declared as impossible last night you now realize is possible today? A hammer for setting linenumbering programmatically was handed to you in my first response to this tortured thread. Being something over your head and unworthy of your attention you chose to treat it with scorn rather than as a useful tool. Now you grouse about its absence in the Mr. Daniels' Arrogant Folly document. Which is it Mr. Daniels? We both know that with the discovery of the Section direction option in PageLayout (You know the option that you couldn't find. That had it been a snake it would have bitten you) that a macro isn't required. Still, to temper your fresh round of grumbling here it is: Sub DanielsWantsAHammer() With ActiveDocument With .Sections(1) 'This is the left to right Mr Daniels' Arrogant Folly text With .PageSetup .SectionDirection = wdSectionDirectionLtr With .LineNumbering .Active = True .StartingNumber = 1 'or whatever .CountBy = 1 'or whatever .RestartMode = wdRestartSection 'or whatever .DistanceFromText = 12 'or whatever End With End With End With With .Sections(2) 'This is the Arabic text With .PageSetup .SectionDirection = wdSectionDirectionRtl With .LineNumbering .Active = True .StartingNumber = 1 'or whatever .CountBy = 1 'or whatever .RestartMode = wdRestartSection 'or whatever .DistanceFromText = 12 'or whatever End With End With End With End With End Sub If you can curb your arrogance and rants long enough to send me your troublesome file, I would be delighted to try to find a solution for you. NB that that I said "try." You being a dilletante and all there is no telling what sort of disaster you have created. How was it that you put it? Oh yes. That's your problem, not to be transferred to others who happen to have more skill working with Word. Cheers. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. "Peter T. Daniels" wrote in message ... In the middle of the night, Sociopath Maxey began whining to the newsgroup that I wasn't acknowledging his messages, so he emailed me a document that does indeed contain Arabic text, in a right-to-left section (apparently he failed to read the posting to which he appended this response), that does indeed contain line numbering in the right margin. Extending the sample text to more than 4 lines, I found that it also works with counting every fifth line. This does not explain, however, why the line numbering does not appear on screen at all in my actual file within a right-to-left section containing actual Arabic text, or why when the page is printed, the line numbers do appear -- printed over the text -- inset from the right margin. I experimented with each of these parameters: changing the font from TNR to the one I was using ("Arabic Typesetting"); line numbering in This section only; Next page section break instead of Continuous; narrowing the margins to match those in my document. In each case, line numbering appears properly in Greg's document and not in my document. His document includes the macro for changing section direction, but the macro does not appear to contain a line number command. On Nov 2, 1:05 am, "Greg Maxey" wrote: Mr. Daniels, You were the one that posted here claiming it didn't exist. Where you blinded by arrogance? I looked before enabling an Arabic language. Hopefully my self admitted ignorance of the world's languages wiil excuse the oversight. Would you like for me to post a picture for the whole world to see or send you an example? Peter T. Daniels wrote: As usual, when all you have is a hammer, everything looks like a nail The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55 pm, "Greg Maxey" wrote: 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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. -- Greg Maxey See my web sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips.- |
#12
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Ask no quarter, give none.
For a picture of the impossible see: http://gregmaxey.mvps.org/Daniels'_ Folly.png For the document pictured see: http://gregmaxey.mvps.org/Mr_Daniels'_Arrogant_Folly.zip Peter T. Daniels wrote: As usual, when all you have is a hammer, everything looks like a nail The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55 pm, "Greg Maxey" wrote: 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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
#13
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
line numbers
Ask no quarter, give none.
For a picture of the impossible see: http://gregmaxey.mvps.org/Daniels'_Folly.png For the document pictured see: http://gregmaxey.mvps.org/Mr_Daniels'_Arrogant_Folly.zip Peter T. Daniels wrote: As usual, when all you have is a hammer, everything looks like a nail The existence of a "SectionDirection" command within PageSetup prompted me to look more closely for the option. In order to make a section read right-to-left, go to Page Setup Layout second dropdown at the top. No macro needed. However, though line numbers are checked, they do not display. (In fact, they blinked off when I Ok'd the Page Setup Layout change, though the Line Numbers box was still checked.) So it appears _still_ to be impossible to get line numbers in the right margin with right-to- left text. On Nov 1, 7:55 pm, "Greg Maxey" wrote: 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 sitehttp://gregmaxey.mvps.org for an eclectic collection of Word Tips. -- Greg Maxey See my web site http://gregmaxey.mvps.org for an eclectic collection of Word Tips. |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
line numbers to appear in line with text | Page Layout | |||
How do I get text in a legal document to line up with line numbers | Microsoft Word Help | |||
Emails to client have no page numbers & line numbers are nuts {URG | Page Layout | |||
line numbers | Microsoft Word Help | |||
Line numbers also show paragraph numbers | Page Layout |