The following is the code used by the Forum tool referred to in my signature. It has a couple of problems, the most annoying of which is that when it finds a misspelled word, the spelling correction window does not display on top. The same thing happens when the spelling check is complete. Is there any way to have it display on top?
VB Code:
  1. <!--
  2. +---------------------------------------------------------------------------+
  3.  
  4.     Function:    Spell Checker
  5.     Description: This script uses Microsoft Word to check the spelling in
  6.                  posts. Word is assumed to be present.
  7.  
  8. +---------------------------------------------------------------------------+
  9. -->
  10.  
  11. <SCRIPT LANGUAGE = "VBScript">  
  12.    
  13. Dim objWord
  14. Dim objDoc
  15. Dim objWindow
  16. Dim objSource
  17. Dim objSelect
  18. Dim objSelectRange
  19. Dim strResult
  20.  
  21. Set objWindow = window.external.menuArguments
  22. Set objSource = objWindow.event.srcElement
  23. Set oDocument = objWindow.document
  24. Set objSelect = oDocument.selection
  25. Set objSelectRange = objSelect.createRange()
  26. 'Create a new instance of word Application
  27. Set objWord = CreateObject("word.Application")
  28.  
  29. If objSource.tagName = "TEXTAREA" Then
  30.     select case objWord.version
  31.         'Office 2000
  32.         case "9.0"
  33.             with objWord
  34.                 .WindowState = 2
  35.                 .Visible = True
  36.             end with
  37.             Set objDoc= objWord.Documents.Add( , ,1, True)
  38.         'Office XP
  39.         case "10.0"
  40.             with objWord
  41.                 .windowstate = 2
  42.                 .Visible = False
  43.             end with
  44.             Set objDoc= objWord.Documents.Add( , ,1, True)
  45.             with objWord
  46.                 .windowstate =2
  47.                 .Visible = True
  48.             end with
  49.         'Office 97
  50.         case else ' Office 97
  51.             Set objDoc= objWord.Documents.Add
  52.     end select
  53.  
  54.         objDoc.Content=objSelectRange.text
  55.         objDoc.CheckSpelling
  56.  
  57.     strResult = left(objDoc.Content, len(objDoc.Content) - 1)
  58.  
  59.     ' This part may not work if you don't use IE
  60.     If objSelectRange.text = strResult Then
  61.         ' There were no spelling errors, so give the user a
  62.         ' visual signal that something happened
  63.         window.alert("The spelling check is complete.")
  64.     End If
  65.  
  66.         ' Replace the selected text with the corrected text
  67.     objSelectRange.text = strResult
  68.  
  69.         'Clean up
  70.         objDoc.Close False
  71.         Set objDoc= Nothing
  72.         objWord.Application.Quit True
  73.         Set objWord= Nothing
  74. end if
  75.  
  76. </SCRIPT>