Re: paragraph numbering



J.I.B. was telling us:
J.I.B. nous racontait que :

That partially did what I needed. When I run the macro, it makes a
line number as needed. But when I am done typing the paragraph and
hit Enter, the next line does not have the number, but is still in
the correct style. Did I miss something?

No, the numbering is not part of the style, it is a field.

Since the macro will not run on a paragraph already styled with the style
used in the macro, set the Next Style of "Num" to be Normal when you define
the style.
Thus, when you will hit Enter, the Next paragraph will Be normal, and if
this new paragraph also needs a number, the macro will have to be run again.
There is no other way. The SEQ field has to be inserted manually, through an
AutoText or with a macro, it cannot be part of a style.

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@xxxxxxxxxxxxxxxxxxxxxxx
Word MVP site: http://www.word.mvps.org


.



Relevant Pages

  • Re: Word 2007 Deleting across paragraphs does not delete paragraph
    ... I have already abandoned the macro. ... Graham Mayor - Word MVP ... Word MVP web site http://word.mvps.org ... The paragraph mark is gone ...
    (microsoft.public.word.docmanagement)
  • Re: Delete second page in document
    ... but I have a second page that contains only the header. ... Go the ¶ immediately below the last text paragraph and hit delete until all ... Jean-Guy Marcil - Word MVP ...
    (microsoft.public.word.vba.general)
  • Re: cant make lines even
    ... This sounds like it was sent through an e-mail program. ... as if it was a new paragraph. ... To record the Macro: ... Hit Ok, and the Macro toolbox will appear. ...
    (microsoft.public.word.newusers)
  • Re: cant make lines even
    ... This sounds like it was sent through an e-mail program. ... as if it was a new paragraph. ... To record the Macro: ... Hit Ok, and the Macro toolbox will appear. ...
    (microsoft.public.word.newusers)
  • Re: One more question
    ... an equivalent for paragraph page break. ... Style solution for now unless I can figure out a true macro. ... Dim oRng As Word.Range ... Set oRng = ActiveDocument.Range ...
    (microsoft.public.word.vba.general)