PDA

Click to See Complete Forum and Search --> : Check Spell check is complete using word


coolnax79
May 10th, 2005, 07:01 AM
I am using word's checkspell. I want to check whether the user has checked the whole document. If the user click's on the cancel or close's the spell check dialog then the application should notify the user that spell check is not complete... How can i track the spell check is complete or it has been interupted............ :afrog:

Ecniv
May 10th, 2005, 07:10 AM
ActiveDocument.SpellingChecked

That property on your document (not the active one :) )

coolnax79
May 11th, 2005, 03:31 AM
Hi Ecniv,

It's not working..... actually i want to check whether the user has checked the whole document..... below is the code i wrote.... but it's not working..

Set oWord = CreateObject("Word.Application")
oWord.Documents.Open ("c:\abc.txt")
oWord.ActiveDocument.CheckSpelling
returnValue = oWord.ActiveDocument.SpellingChecked

If (returnValue = False) Then
MsgBox "Spell check Incomplete"
end if