Results 1 to 3 of 3
  1. #1
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Paragraph Number (VBA/Word/2000 & 2003)

    I am certain that I have solved this before but cannot crack it now.

    With all or part of a heading paragraph selected, as shown below; how do I determine the paragraph number (6.1 in this instance)?
    <pre>6 LIVESTOCK
    6.1 <span style="background-color: #FFFF00; color: #000000; font-weight: bold">Pets</span hi>
    The quick brown fox jumps over the lazy dog. The quick brown fox
    jumps over the lazy dog. The quick brown fox jumps over the lazy
    dog. The quick brown fox jumps over the lazy dog. The quick
    brown fox jumps over the lazy dog.
    </pre>

    Regards
    Don

  2. #2
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Paragraph Number (VBA/Word/2000 & 2003)

    do you mean in VBA?

    Try
    <code>Selection.Range.ListFormat.ListString</code>

    StuartR

  3. #3
    Silver Lounger
    Join Date
    Jul 2001
    Location
    Ottawa, Ontario, Canada
    Posts
    1,609
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Paragraph Number (VBA/Word/2000 & 2003)

    Yes Stuart, I did mean in VBA. And thank you for the speedy response; I had forgotten the need for the Range member.<pre>Selection.<font color=blue>Range</font color=blue>.ListFormat.ListString</pre>

    Regards
    Don

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •