Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Spellchking with CreateObject("Word Application")

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,496
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Spellchking with CreateObject("Word Application")
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Spellchking with CreateObject("Word Application&q... - 11/21/2001 10:30:35 PM   
  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
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Spellchking with CreateObject("Word Application") Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts