#1   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Guy Lydig Guy Lydig is offline
external usenet poster
 
Posts: 46
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers

"Mister" Maxey,

If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set up
a regime of distrust, let this so inform you.

I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.

You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer to
any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may have
assimilated the contemptuous attitude of your then-superiors toward
all things Arab. But that's your problem, not to be transferred to
someone who happens to be concerned with the Arabic language.]]

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

And you do it in a way that expects someone to work through your code
to try to figure out what it is doing; even though you provide the
explanation at the bottom that you get an error when you enter a
negative value.

What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?

I understand that you posted in this thread solely with the purpose of
"baiting" me, and I regret to say, you succeeded; but since after your
standard regime of insults you incorporated a display of your attempt,
however much it failed, to find a solution, I chose not to ignore it
and to allow you the satisfaction, this time, of having successfully
baited me.

NB I have made no changes in my way of responding to queries, whether
as a result of your constant nagging or of anything else.

On Nov 1, 3:04*pm, "Greg Maxey"
wrote:
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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.- Hide quoted text -

- Show quoted text -


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

Mr. Daniels,

I call you Mr.because I prefer it over Peter and unlike you, I don't wish to
stoop to addressing you with childish manipulations of other formal titles.

Here again you assume to know what others think. The only thing that I am
contemptuous of is your arrogance and manner.

For someone with such honed and self-proclaimed skills of reading for
content vice context and knowing what other people really mean, you
certainly missed the mark this time. Despite your twisted belief that I have
tried to bait you, I actually tried to help or at the very least answer your
basic question. Very, very stupid of me. Yes.

In response to Guy's reply: Is your text direction set to: right-to-left?

You replied: 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.

You claim now that the answer to your basic quesiton is something already
known to everyone, at that point there was no indication that your original
question "Is there any way to get the line numbers to appear in the right
margin (i.e., at the beginnings of the lines)?" had been answered and you
didn't answer Guy's yes or no question with yes or no. Perhaps you did
answer it your own way, but not knowing one way or the other, I saw no harm
in posting what I had learned about the process regardless if you were
already aware of it or not.

As for the code and the example. Note the "ICBW." Knowing that I was
addressing a master of languages, I went out on limb, and thought you would
discern that meant "I could be wrong." When someone "could be wrong" they
avoid definative answers like yes or no. Think of it like this:

Daniels,

I can't say yes or no definatively, but a far as I know line numbering can't
be displayed in the right margin regardless of text direction. Like you, I
can't find anyway to do it with the UI. I tried doing it programatically
using VBA with the following code:

Sub ScratchMaco()
With ActiveDocument.Sections(1).PageSetup.LineNumbering
.Active = True
.CountBy = 5
.DistanceFromText = -600
End With
End Sub

As you can see there is a property ".DistanceFromText" This property
returns or sets the distance (in points) between the right edge of line
numbers and the left edge of the document text. If you use a negative number
(i.e., attempt to force the numbers into the right margin) an error is
generated. There is no gun pointed at your head and I don't "expect" you to
do anything, however, AFAIK the code supports the that the answer to your
question is "No."

I am sorry to learn that I was mistaken concering changes in your posting
style.

Peter T. Daniels wrote:
"Mister" Maxey,

If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set up
a regime of distrust, let this so inform you.

I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.

You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer to
any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may have
assimilated the contemptuous attitude of your then-superiors toward
all things Arab. But that's your problem, not to be transferred to
someone who happens to be concerned with the Arabic language.]]

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

And you do it in a way that expects someone to work through your code
to try to figure out what it is doing; even though you provide the
explanation at the bottom that you get an error when you enter a
negative value.

What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?

I understand that you posted in this thread solely with the purpose of
"baiting" me, and I regret to say, you succeeded; but since after your
standard regime of insults you incorporated a display of your attempt,
however much it failed, to find a solution, I chose not to ignore it
and to allow you the satisfaction, this time, of having successfully
baited me.

NB I have made no changes in my way of responding to queries, whether
as a result of your constant nagging or of anything else.

On Nov 1, 3:04 pm, "Greg Maxey"
wrote:
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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.- Hide quoted text -

- Show quoted text -


--
Greg Maxey

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


  #9   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers

On Nov 1, 5:32*pm, "Greg Maxey"
wrote:
Mr. Daniels,

I call you Mr.because I prefer it over Peter


And you have never noticed that your "preference" is at odds with
every other user of Usenet?
  #10   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers

On Nov 1, 5:32*pm, "Greg Maxey"
wrote:
Mr. Daniels,

In response to Guy's reply: *Is your text direction set to: right-to-left?

You replied: *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.

You claim now that the answer to your basic quesiton is something already
known to everyone, at that point there was no indication that your original
question "Is there any way to get the line numbers to appear in the right
margin (i.e., at the beginnings of the lines)?" had been answered and you
didn't answer Guy's yes or no question with yes or no. *Perhaps you did
answer it your own way, but not knowing one way or the other, I saw no harm
in posting what I had learned about the process regardless if you were
already aware of it or not.


Perhaps you should start following your own advice. (Remember the
saying about the beam in your own eye?) You do not have any right-to-
left language enabled on your computer; therefore you have no way of
knowing anything at all about how Word handles right-to-left scripts;
in particular, you are not familiar with the button that appears in
the Paragraph group of the Home tab that controls paragraph direction.

If you were familiar with that tool. then you would have understood my
response to Guy (why, by the way, is he not "Mr. Lydig" to you?),
regarding paragraph-by-paragraph direction-setting.

As for the code and the example. *Note the "ICBW." *Knowing that I was
addressing a master of languages, I went out on limb, and thought you would
discern that meant "I could be wrong." *When someone "could be wrong" they
avoid definative answers like yes or no. *Think of it like this:

Daniels,

I can't say yes or no definatively, but a far as I know line numbering can't
be displayed in the right margin regardless of text direction. *Like you, I
can't find anyway to do it with the UI. *I tried doing it programatically
using VBA with the following code:

Sub ScratchMaco()
With ActiveDocument.Sections(1).PageSetup.LineNumbering
* .Active = True
* .CountBy = 5
* .DistanceFromText = -600
End With
End Sub

As you can see there is a property ".DistanceFromText" *This property
returns or sets the distance (in points) between the right edge of line
numbers and the left edge of the document text. If you use a negative number
(i.e., attempt to force the numbers into the right margin) an error is
generated. *There is no gun pointed at your head and I don't "expect" you to
do anything, however, AFAIK the code supports the that the answer to your
question is "No."


Very cute.

However, since you know nothing about right-to-left scripts, you may
well be unfamiliar with whatever coding might be involved in moving
the line numbering; more likely, if someone can explain how to set a
Section to right-to-left, then the line numbers would automatically
appear on the right.

Here's a datum that might prove to be food for thought. When I printed
out my two pages of Arabic, the line numbers (which on screen appeared
in the left margin, i.e. at the ends of the lines they referred to)
appear _within the text_, overprinted about 1/2" in from the _right_
margin.

I am sorry to learn that I was mistaken concering changes in your posting
style.

Peter T. Daniels wrote:
"Mister" Maxey,


If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set up
a regime of distrust, let this so inform you.


I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.


You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer to
any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may have
assimilated the contemptuous attitude of your then-superiors toward
all things Arab. But that's your problem, not to be transferred to
someone who happens to be concerned with the Arabic language.]]


Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.


And you do it in a way that expects someone to work through your code
to try to figure out what it is doing; even though you provide the
explanation at the bottom that you get an error when you enter a
negative value.


What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?


I understand that you posted in this thread solely with the purpose of
"baiting" me, and I regret to say, you succeeded; but since after your
standard regime of insults you incorporated a display of your attempt,
however much it failed, to find a solution, I chose not to ignore it
and to allow you the satisfaction, this time, of having successfully
baited me.


NB I have made no changes in my way of responding to queries, whether
as a result of your constant nagging or of anything else.


On Nov 1, 3:04 pm, "Greg Maxey"
wrote:
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 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   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default line numbers

Mr. Daniels,

What is your point? I neither know nor care what ever other user of Usenet
prefers to call you.

Should all the other lemmings migrate over the cliff and into the sea would
you follow or be at odds with?


Peter T. Daniels wrote:
On Nov 1, 5:32 pm, "Greg Maxey"
wrote:
Mr. Daniels,

I call you Mr.because I prefer it over Peter


And you have never noticed that your "preference" is at odds with
every other user of Usenet?


--
Greg Maxey

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


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

Mr. Daniels,

Spin this how you like. I freely admit complete ignorance of right to left
scripts plus any and all Word tools assoicated with their use. While I
didn't explain that or confess it up front here in elementary language that
a moron would understand; I am aware; as are you, that I have confessed it
to you previously in our discussion a few weeks ago on transposing
characters. I concede the point again. Absent of all malice, it was still
a mistake and very, very stupid of me to mention anything about it. So,
unless you just like to see yourself rant, there is no need for you to go on
and on about it here. Uncle!

The reason I refer to Guy (vice Mr. Lydig) is because he isn't a character
that I would avoid conversing with on a first name basis. He isn't
offensive in the least and he hasn't hurled unprovoked insults at me or
others in this group or defended those who have.

My only interest in your question was displaying line numbers in the right
vice left margin. I would have the same interest if someone else had asked
and if the post was completely unrelated to right to left scripts.

Unfortunately it was you that asked and you dogged attempts at continuing a
fight has only provoke me to look harder for a solution. As for setting
right to left on a specific section you might try:

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

According to the help available it sets the direction of the first section
in the active document to right-to-left. In the document that I am working
with this has no affect on the text itself, but it does move the line
numbers to the right margin.

Cheers.

Peter T. Daniels wrote:
On Nov 1, 5:32 pm, "Greg Maxey"
wrote:
Mr. Daniels,

In response to Guy's reply: Is your text direction set to:
right-to-left?

You replied: 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.

You claim now that the answer to your basic quesiton is something
already known to everyone, at that point there was no indication
that your original question "Is there any way to get the line
numbers to appear in the right margin (i.e., at the beginnings of
the lines)?" had been answered and you didn't answer Guy's yes or no
question with yes or no. Perhaps you did answer it your own way, but
not knowing one way or the other, I saw no harm in posting what I
had learned about the process regardless if you were already aware
of it or not.


Perhaps you should start following your own advice. (Remember the
saying about the beam in your own eye?) You do not have any right-to-
left language enabled on your computer; therefore you have no way of
knowing anything at all about how Word handles right-to-left scripts;
in particular, you are not familiar with the button that appears in
the Paragraph group of the Home tab that controls paragraph direction.

If you were familiar with that tool. then you would have understood my
response to Guy (why, by the way, is he not "Mr. Lydig" to you?),
regarding paragraph-by-paragraph direction-setting.

As for the code and the example. Note the "ICBW." Knowing that I was
addressing a master of languages, I went out on limb, and thought
you would discern that meant "I could be wrong." When someone "could
be wrong" they avoid definative answers like yes or no. Think of it
like this:

Daniels,

I can't say yes or no definatively, but a far as I know line
numbering can't be displayed in the right margin regardless of text
direction. Like you, I can't find anyway to do it with the UI. I
tried doing it programatically using VBA with the following code:

Sub ScratchMaco()
With ActiveDocument.Sections(1).PageSetup.LineNumbering
.Active = True
.CountBy = 5
.DistanceFromText = -600
End With
End Sub

As you can see there is a property ".DistanceFromText" This property
returns or sets the distance (in points) between the right edge of
line numbers and the left edge of the document text. If you use a
negative number (i.e., attempt to force the numbers into the right
margin) an error is generated. There is no gun pointed at your head
and I don't "expect" you to do anything, however, AFAIK the code
supports the that the answer to your question is "No."


Very cute.

However, since you know nothing about right-to-left scripts, you may
well be unfamiliar with whatever coding might be involved in moving
the line numbering; more likely, if someone can explain how to set a
Section to right-to-left, then the line numbers would automatically
appear on the right.

Here's a datum that might prove to be food for thought. When I printed
out my two pages of Arabic, the line numbers (which on screen appeared
in the left margin, i.e. at the ends of the lines they referred to)
appear _within the text_, overprinted about 1/2" in from the _right_
margin.

I am sorry to learn that I was mistaken concering changes in your
posting style.

Peter T. Daniels wrote:
"Mister" Maxey,


If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set
up a regime of distrust, let this so inform you.


I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.


You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer
to any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may
have assimilated the contemptuous attitude of your then-superiors
toward all things Arab. But that's your problem, not to be
transferred to someone who happens to be concerned with the Arabic
language.]]


Yet you provide a demonstration of what everyone already knows,
viz., that line numbers cannot be placed in the right margin of a
left-to- right section.


And you do it in a way that expects someone to work through your
code to try to figure out what it is doing; even though you provide
the explanation at the bottom that you get an error when you enter a
negative value.


What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?


I understand that you posted in this thread solely with the purpose
of "baiting" me, and I regret to say, you succeeded; but since
after your standard regime of insults you incorporated a display of
your attempt, however much it failed, to find a solution, I chose
not to ignore it and to allow you the satisfaction, this time, of
having successfully baited me.


NB I have made no changes in my way of responding to queries,
whether as a result of your constant nagging or of anything else.


On Nov 1, 3:04 pm, "Greg Maxey"
wrote:
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 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.-


--
Greg Maxey

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


  #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.


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

Mr. Daniels,

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

Wrong again! Line numbers "can" be placed in the right margin of a left-to-
right section.

What everyone else reading this tortured thread now knows is that while you
were ranting and snapping at the hand trying to assist you, a solution was
found. So for you I guess it is back under the bridge for another supper on
crow sandwich

Peter T. Daniels wrote:
"Mister" Maxey,

If you have not discovered by now that your fake "politeness" using
"Mr." and "Ms.," where _every other poster to every newsgroup_ uses
people's first names or their pseudonyms, is the surest way to set up
a regime of distrust, let this so inform you.

I asked if there is a way to get line numbers in the right margin,
i.e. the starts of lines, of a section of right-to-left text.

You state that you have no right-to-left capabilities installed on
your system, and you state that you know nothing about right-to-left
text. [[I know from your favored epithet "Gedorkian" used to refer to
any writing other than the plain English alphabet that you are
contemptuous of other cultures, and it may even be that during your
naval service, however ineffectual, during the Gulf War, you may have
assimilated the contemptuous attitude of your then-superiors toward
all things Arab. But that's your problem, not to be transferred to
someone who happens to be concerned with the Arabic language.]]

Yet you provide a demonstration of what everyone already knows, viz.,
that line numbers cannot be placed in the right margin of a left-to-
right section.

And you do it in a way that expects someone to work through your code
to try to figure out what it is doing; even though you provide the
explanation at the bottom that you get an error when you enter a
negative value.

What need was there to "show your work" as opposed to either simply
reporting that there is no way to do it, or better, since you don't
know anything about the problem, to say nothing at all?

I understand that you posted in this thread solely with the purpose of
"baiting" me, and I regret to say, you succeeded; but since after your
standard regime of insults you incorporated a display of your attempt,
however much it failed, to find a solution, I chose not to ignore it
and to allow you the satisfaction, this time, of having successfully
baited me.

NB I have made no changes in my way of responding to queries, whether
as a result of your constant nagging or of anything else.

On Nov 1, 3:04 pm, "Greg Maxey"
wrote:
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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.- Hide quoted text -

- Show quoted text -


--
Greg Maxey

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


  #15   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers

On Nov 1, 6:33*pm, "Greg Maxey"
wrote:
Mr. *Daniels,

What is your point? *I neither know nor care what ever other user of Usenet
prefers to call you.


"Neither no nor care" what other people do is the very definition of
sociopath.

It has nothing to do with what people call _me_ specifically. It has
to do with the way people address each other in this medium throughout
the world.

Should all the other lemmings migrate over the cliff and into the sea would
you follow or be at odds with?


If I were a lemming, and if that behavior were actually what lemmings
do (it isn't), then it would be in my nature to do so as well.

Peter T. Daniels wrote:
On Nov 1, 5:32 pm, "Greg Maxey"
wrote:
Mr. Daniels,


I call you Mr.because I prefer it over Peter


And you have never noticed that your "preference" is at odds with
every other user of Usenet?


--
Greg Maxey

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




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

Stone the crows (are there any left)! He is back.

Back to show once again that when he really has not point and when he learns
that he is wrong on the central point (that he is a dilettante and an
arrogant one at that) he will find another sore to pick.

"Should" Mr. Daniels. Not "when." Yes it is a myth.

Cheers.

Peter T. Daniels wrote:
On Nov 1, 6:33 pm, "Greg Maxey"
wrote:
Mr. Daniels,

What is your point? I neither know nor care what ever other user of
Usenet prefers to call you.


"Neither no nor care" what other people do is the very definition of
sociopath.

It has nothing to do with what people call _me_ specifically. It has
to do with the way people address each other in this medium throughout
the world.

Should all the other lemmings migrate over the cliff and into the
sea would you follow or be at odds with?


If I were a lemming, and if that behavior were actually what lemmings
do (it isn't), then it would be in my nature to do so as well.

Peter T. Daniels wrote:
On Nov 1, 5:32 pm, "Greg Maxey"
wrote:
Mr. Daniels,


I call you Mr.because I prefer it over Peter


And you have never noticed that your "preference" is at odds with
every other user of Usenet?


--
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.


  #17   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default 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.

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

BTW,

Being unlike you, who is constantly groussing about selective advanced Word
features that you don't understand or that you don't wish to pursue
yourself, I enabled an Arabic language.

After doing so the the Page Setup dialog that appears when you click the
"dialog box launcher" in the bottom right corner of the Page Setup group or
when you click "Line NumbersLine Numbering Options..." plainly shows a
Section direction field with choices Right-to-left and Left-to-right. If it
had been a snake it would have bitten you. Must something blinding about
blind arrogance after all.

Peter T. Daniels wrote:
On Nov 1, 6:33 pm, "Greg Maxey"
wrote:
Mr. Daniels,

What is your point? I neither know nor care what ever other user of
Usenet prefers to call you.


"Neither no nor care" what other people do is the very definition of
sociopath.

It has nothing to do with what people call _me_ specifically. It has
to do with the way people address each other in this medium throughout
the world.

Should all the other lemmings migrate over the cliff and into the
sea would you follow or be at odds with?


If I were a lemming, and if that behavior were actually what lemmings
do (it isn't), then it would be in my nature to do so as well.

Peter T. Daniels wrote:
On Nov 1, 5:32 pm, "Greg Maxey"
wrote:
Mr. Daniels,


I call you Mr.because I prefer it over Peter


And you have never noticed that your "preference" is at odds with
every other user of Usenet?


--
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.


  #19   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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.


  #20   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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.




  #21   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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.


  #22   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default 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.-

  #23   Report Post  
Posted to microsoft.public.word.docmanagement
Greg Maxey[_2_] Greg Maxey[_2_] is offline
external usenet poster
 
Posts: 668
Default 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.-



  #24   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers

On Nov 2, 12:23*pm, "Greg Maxey"
wrote:
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


I saw a hammer for setting Section right-to-left, but not a hammer for
setting line numbering. I also do not see such a hammer in the macro
included in the .docm in question.

An explanation of why a command included in a macro might work while
the same command accessed via the GUI might not would be most
interesting.

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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.

"Peter T. Daniels" wrote in ...
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.-- Hide quoted text -


- Show quoted text -


  #25   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers -- solved

Greg discovered (by copying it section by section without the section
breaks or final paragraph mark) that my document was just a little bit
corrupt. Everything now works just as expected.

On Nov 2, 1:06*pm, "Peter T. Daniels" wrote:
On Nov 2, 12:23*pm, "Greg Maxey"

wrote:
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


I saw a hammer for setting Section right-to-left, but not a hammer for
setting line numbering. I also do not see such a hammer in the macro
included in the .docm in question.

An explanation of why a command included in a macro might work while
the same command accessed via the GUI might not would be most
interesting.



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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.


"Peter T. Daniels" wrote in ...
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.-- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -




  #26   Report Post  
Posted to microsoft.public.word.docmanagement
Gordon Bentley-Mix[_2_] Gordon Bentley-Mix[_2_] is offline
external usenet poster
 
Posts: 154
Default line numbers -- solved

What a guy that Greg Maxey is! After all the abuse you've heaped on him over
the months and years, he still has the kindness in his heart to find a
solution to your problem. Do I hear a thank you?

(A little bit corrupt? Is that like a little bit pregnant? g)
--
Cheers!

Gordon Bentley-Mix
Word MVP

"Peter T. Daniels" wrote in message
...
Greg discovered (by copying it section by section without the section
breaks or final paragraph mark) that my document was just a little bit
corrupt. Everything now works just as expected.

On Nov 2, 1:06 pm, "Peter T. Daniels" wrote:
On Nov 2, 12:23 pm, "Greg Maxey"

wrote:
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


I saw a hammer for setting Section right-to-left, but not a hammer for
setting line numbering. I also do not see such a hammer in the macro
included in the .docm in question.

An explanation of why a command included in a macro might work while
the same command accessed via the GUI might not would be most
interesting.



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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.


"Peter T. Daniels" wrote in
...
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.-- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #27   Report Post  
Posted to microsoft.public.word.docmanagement
Peter T. Daniels Peter T. Daniels is offline
external usenet poster
 
Posts: 3,215
Default line numbers -- solved

Why would I thank _you_ for what he did?

On Nov 3, 2:18*am, "Gordon Bentley-Mix"
wrote:
What a guy that Greg Maxey is! After all the abuse you've heaped on him over
the months and years, he still has the kindness in his heart to find a
solution to your problem. Do I hear a thank you?

(A little bit corrupt? Is that like a little bit pregnant? g)
--
Cheers!

Gordon Bentley-Mix
Word MVP

"Peter T. Daniels" wrote in ...



Greg discovered (by copying it section by section without the section
breaks or final paragraph mark) that my document was just a little bit
corrupt. Everything now works just as expected.


On Nov 2, 1:06 pm, "Peter T. Daniels" wrote:
On Nov 2, 12:23 pm, "Greg Maxey"


wrote:
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


I saw a hammer for setting Section right-to-left, but not a hammer for
setting line numbering. I also do not see such a hammer in the macro
included in the .docm in question.


An explanation of why a command included in a macro might work while
the same command accessed via the GUI might not would be most
interesting.


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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.


"Peter T. Daniels" wrote in
...
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.--

  #28   Report Post  
Posted to microsoft.public.word.docmanagement
Gordon Bentley-Mix[_2_] Gordon Bentley-Mix[_2_] is offline
external usenet poster
 
Posts: 154
Default line numbers -- solved

Plonker...
--
Cheers!

Gordon Bentley-Mix
Word MVP

"Peter T. Daniels" wrote in message
...
Why would I thank _you_ for what he did?

On Nov 3, 2:18 am, "Gordon Bentley-Mix"
wrote:
What a guy that Greg Maxey is! After all the abuse you've heaped on him
over
the months and years, he still has the kindness in his heart to find a
solution to your problem. Do I hear a thank you?

(A little bit corrupt? Is that like a little bit pregnant? g)
--
Cheers!

Gordon Bentley-Mix
Word MVP

"Peter T. Daniels" wrote in
...



Greg discovered (by copying it section by section without the section
breaks or final paragraph mark) that my document was just a little bit
corrupt. Everything now works just as expected.


On Nov 2, 1:06 pm, "Peter T. Daniels" wrote:
On Nov 2, 12:23 pm, "Greg Maxey"


wrote:
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


I saw a hammer for setting Section right-to-left, but not a hammer for
setting line numbering. I also do not see such a hammer in the macro
included in the .docm in question.


An explanation of why a command included in a macro might work while
the same command accessed via the GUI might not would be most
interesting.


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 sitehttp://gregmaxey.mvps.org
for an eclectic collection of Word Tips.


"Peter T. Daniels" wrote in
...
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.--


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
line numbers to appear in line with text Sarah Page Layout 1 October 20th 09 03:19 PM
How do I get text in a legal document to line up with line numbers sunshine97236 Microsoft Word Help 1 January 25th 08 07:33 PM
Emails to client have no page numbers & line numbers are nuts {URG Lindsay Page Layout 1 June 26th 06 04:48 AM
line numbers Craig Blackmon Microsoft Word Help 1 August 9th 05 07:12 PM
Line numbers also show paragraph numbers BioIP Page Layout 3 June 1st 05 02:56 PM


All times are GMT +1. The time now is 05:05 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"