Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2007

Tip: Looking for answers? Try searching our database.

Help in bypassing dialog box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hlngus@hotmail.com - 26 Jan 2007 23:02 GMT
Is there a way to programmatically suppress the following dialog box
that appears
after spellchecking, i.e.  "Word finished checking the selection. Do
you want to continue checking the remainder of the document? "  .

I'd also settle for a 'No' selection that is transparent to the user.

Here's the code snippet.

' If document is protected, Unprotect it.
  If ActiveDocument.ProtectionType <> wdNoProtection Then
     ActiveDocument.Unprotect Password:=""
  End If

  ' Set the language for the document.
  Selection.WholeStory
  Selection.LanguageID = wdEnglishUS
  Selection.NoProofing = False

  Selection.Text = UserForm1.TextBox1.Value

  ' Perform Spelling/Grammar check.

  If Options.CheckGrammarWithSpelling = True Then
     ActiveDocument.CheckGrammar
  Else
     ActiveDocument.CheckSpelling IgnoreUppercase:=False, _
       customdictionary:="c:\ams\devprod\word\city.dic"
     ' SendKeys "n"
  End If

  Selection.WholeStory
  Selection.Cut

  UserForm1.TextBox1.SetFocus

  UserForm1.TextBox1.Text = " "
  UserForm1.TextBox1.Paste

Appreciate any input here.
Jezebel - 27 Jan 2007 00:02 GMT
Do you also want to suppress the dialog for any spelling errors found?

> Is there a way to programmatically suppress the following dialog box
> that appears
[quoted text clipped - 36 lines]
>
> Appreciate any input here.
hlngus@hotmail.com - 30 Jan 2007 18:58 GMT
> Do you also want to suppress the dialog for any spelling errors found?

No I don't.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.