none
Spell Check Crashing On Windows 7 X64 - W2003 RRS feed

  • Question

  • Word 2003 is crashing when doing a spell check when running on Windows 7 x64bit.  Windows XP and Windows 7 32bit work fine.  Below is a simple test case.  I am really checking spelling on a form.   Any ideas or alternate methods to do this.

    Sub SpellCheck()
      Dim tmpDoc As Word.Document
      Dim rngDoc As Word.Range
      'Open a new document to serve as a scratchpad
        Set tmpDoc = Documents.Add
        Set rngDoc = tmpDoc.Range
        rngDoc = "Check for spellling mistake"
        With rngDoc
          With Dialogs(wdDialogToolsSpellingAndGrammar)
            .Show
          End With
    'Clip the end of document marker
          .End = .End - 1
        End With
        tmpDoc.Close wdDoNotSaveChanges   'CRASH HERE
        Set tmpDoc = Nothing
    End Sub

    Monday, June 27, 2011 2:05 PM