VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Automation of the Word Spell Checker

John Edward Colman  (7 Submissions)   Microsoft Office Apps/VBA   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

To help out my Dutch friend Frederik who needed to spell check in various languages, I designed this simple example.
To adapt it to use a particular dictionary, supply the dictionary path as an option like so:
w1.CheckSpelling(Text1.Text,"c:\path\MyDic.DIC)

Inputs
Works better if you type one word at a time. Of course, you'll write you code to automate this.

Assumes
You'll need to own a fairly recent copy of Word. I used Word 97.

Returns
Tells you if the spelling is good or a list of suggestions if not.

Side Effects
Lot's of votes I hope!

API Declarations
No Windows API.
Create a form with a TextBox CommandButton and ListBox.
Also include the Word library by selecting these menu options:
Project > References:
and checking "Microsoft Word 8.0 Object Library".

Rate Automation of the Word Spell Checker (6(6 Vote))
Automation of the Word Spell Checker.bas

Automation of the Word Spell Checker Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters