Solved

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

Posted on 2013-11-25
3
546 Views
Last Modified: 2013-11-25
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
Comment
Question by:gplana
  • 2
3 Comments
 
LVL 76

Assisted Solution

by:GrahamSkan
GrahamSkan earned 500 total points
Comment Utility
Doc.Range.NoProofing = True

Open in new window

Will disable the spell checking for the Doc object
0
 
LVL 76

Accepted Solution

by:
GrahamSkan earned 500 total points
Comment Utility
wdApp.Options.CheckSpellingAsYouType = False

Open in new window

will stop any dynamic spell checking in the wdApp application
0
 
LVL 15

Author Closing Comment

by:gplana
Comment Utility
Thank you both.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Office 365 is currently available in five editions. Three of them are for business use: Office 365 Business Essentials, Office 365 Business, and Office 365 Business Premium. Two of them are for home/personal use: Office 365 Home and Office 365 Perso…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now