• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 583
  • Last Modified:

How to disable Word auto-spell-checker from Visual Basic

Hi.

I have a Visual Basic 6 application which uses automation to generate a Word document.
Currently application is throwing an error because a word popup message appears saying there are too many mispelling words, so my question is: is it possible to disable the automatic spell-checker to avoid this problem?

It should work on all Microsoft Word versions (from Microsoft Word XP to Microsoft Word 2013).

Thank you.
0
gplana
Asked:
gplana
  • 2
2 Solutions
 
GrahamSkanRetiredCommented:
Doc.Range.NoProofing = True

Open in new window

Will disable the spell checking for the Doc object
0
 
GrahamSkanRetiredCommented:
wdApp.Options.CheckSpellingAsYouType = False

Open in new window

will stop any dynamic spell checking in the wdApp application
0
 
gplanaAuthor Commented:
Thank you both.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now