none
read paragraph length RRS feed

  • Question

  • How can I read the length of a specified paragraph? I mean, I want to know how many characters are there in the paragraph.
    Saturday, January 22, 2011 2:07 PM

Answers

  • How about

    Dim iChars As Long
    iChars = Selection.Paragraphs(1).Range.Characters.Count
    MsgBox iChars



    <Sefler Zhou> wrote in message news:32755b3d-f124-4b48-9d20-3e27d70bbf81@communitybridge.codeplex.com...

    How can I read the length of a specified paragraph? I mean, I want to know how many characters are there in the paragraph.


    Graham Mayor - Word MVP
    www.gmayor.com
    Posted via the Communities Bridge
    http://communitybridge.codeplex.com/
    • Marked as answer by Sefler Zhou Sunday, January 23, 2011 10:22 AM
    Saturday, January 22, 2011 2:27 PM