Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    wdGoToSpellingError Bug?? (Word 97, 2000, 2002, 20

    The following code states and demonstrates the problem.

    Long code (9500 characters) moved to attachment

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: wdGoToSpellingError Bug?? (Word 97, 2000, 2002

    Well, I've got to disappear for a while to prepare my annual mailing to my Uncle Sam.

    The only workaround I've found to the problem I posed is to move the Selection/Range past the troublesome characters. Perhaps that's what Word does internally anyway? I hate programming such hacks!

    In any case, the method used to iterate the ProofReadingErrors makes a big difference.

    For a recent example:

    Using For Each: 68280 milliseconds
    Using For Next: 42469 milliseconds

    Using GoToNext or GoTo with the Range and Selection objects used (I do not recall which used what): 19826, 19950, 19857, and 19731 milliseconds.

    So, you can see that it is much faster to traverse the document, instead of using the ProofReadingErrors collection.

    See ya in a week or so.

    ta, ta!

Posting Permissions

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