Group:  Microsoft Word ยป microsoft.public.word.vba.beginners
Thread: How to retrieve the paragraph number of an auto-numbered paragraph?

How to retrieve the paragraph number of an auto-numbered paragraph?
"robot" <lianggyh[ at ]DELETEyahoo.com.QUITSPAMhk> 11/4/2008 6:29:36 AM
Hello,

I need a function that returns the paragraph number of an auto-numbered
paragraph.

Any help would be appreciated. (I use Word 2002.) Thank you in advance.



RE: How to retrieve the paragraph number of an auto-numbered paragraph
Helmut Weber 11/4/2008 10:08:01 AM
Hi Robot,

as this is the beginners group,
without discussing all details,
in principle like that:

With Selection.Range.ListParagraphs(1)
MsgBox .Range.ListFormat.ListString
End With

assuming, that there is a listparagraph...

--
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Word 2002, Windows XP (german versions)

Re: How to retrieve the paragraph number of an auto-numbered paragraph
"robot" <lianggyh[ at ]DELETEyahoo.com.QUITSPAMhk> 11/5/2008 8:25:00 AM
Dear Helmut,

That's exactly what I need. Thank you very much for your reply.


"Helmut Weber" <HelmutWeber[ at ]discussions.microsoft.com> wrote in
:B48427D3-6A4F-41D5-AFA4-91ACE8E7DA2B[ at ]microsoft.com...
[Quoted Text]
> Hi Robot,
>
> as this is the beginners group,
> without discussing all details,
> in principle like that:
>
> With Selection.Range.ListParagraphs(1)
> MsgBox .Range.ListFormat.ListString
> End With
>
> assuming, that there is a listparagraph...
>
> --
> Greetings from Bavaria, Germany
> Helmut Weber, MVP WordVBA
> Word 2002, Windows XP (german versions)
>


Home | Search | Terms | Imprint
Newsgroups Reader