Results 1 to 3 of 3
  1. #1
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Levin, Manawatu-Wanganui, New Zealand
    Posts
    324
    Thanks
    9
    Thanked 28 Times in 26 Posts

    Passive sentence reporting (Word 2003)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Passive sentence reporting (Word 2003)

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

  3. #3
    3 Star Lounger
    Join Date
    Apr 2001
    Location
    Levin, Manawatu-Wanganui, New Zealand
    Posts
    324
    Thanks
    9
    Thanked 28 Times in 26 Posts

    Re: Passive sentence reporting (Word 2003)

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

    Regards
    Geof

Posting Permissions

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