| |
Bob
Posts: 2
Score: 0
Joined: 11/21/2001
From:
Status: offline
|
When I run this code it displays the MSOffice 97 Word Spellcheck dialog box, but the top box displayed [object object] as repeated words. Those are not the words that I typed in to test. Then after I clicked the ignore button, I got this message: Microsoft VBScript runtime error '800a01b6' Object doesn't support this property or method: 'wdDoNotSaveChanges' Here's the code: Sub Button1_onclick() dim x set x = createobject("Word.Application") x.visible = false x.documents.add x.selection.text = Text1 x.ActiveDocument.CheckSpelling Text1 = x.selection.text x.ActiveDocument.Close SaveChanges:wdDoNotSaveChanges x.Quit Set x = Nothing End Sub How can I make this work correctly, spell checking the textarea? Please! Edited by - Bob on 11/22/2001 04:46:43
|
|