• Passive sentence reporting (Word 2003)

    Author
    Topic
    #431835

    Good afternoon loungers

    I want to report the passive sentence score under vba.
    This code direct from m/soft

    Sub test()
    Set myStat = ActiveDocument.ReadabilityStatistics
    ActiveDocument.GrammarChecked = False
    ActiveDocument.CheckGrammar
    MsgBox myStat(8).Name & ” – ” & myStat(8).Value

    End Sub

    When run over a document containing the 2 sentences as follows (nice and simple)

    The ball was dropped by the door.
    The ball was dropped by the door.

    Word correctly identifies these as passive.
    The doc statistics may even report a % figure for passive sentences

    yet

    myStat(8).Name & ” – ” & myStat(8).Value

    shows 0

    Any light would be welcome.

    Thank you in advance ..
    Geof

    Viewing 0 reply threads
    Author
    Replies
    • #1011683

      Seems to be a bug in VBA. I found a mention of this problem in the newsgroups, but no solution.

      • #1011684

        Hello Hans
        Thanks anyway.
        There seems to be be very limited exposure in the object model to the readabilitystatistics.

        Regards
        Geof

    Viewing 0 reply threads
    Reply To: Passive sentence reporting (Word 2003)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: