Spell checking

P

Patrick Simonds

Does anyone know how to spell check the contents of TextBox when exiting the
TextBox?
 
C

Cindy M -WordMVP-

Hi Patrick,
Does anyone know how to spell check the contents of TextBox when exiting the
TextBox?
What kind of text box (what commands did you use to create it)? Word has three
or four very different things that all have the name "text box"...

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 
P

Patrick Simonds

Sorry I should have been more specific.

This TextBox resides on a UserForm where people enter information which is
then placed into a document when the UserForm is closed.
 
C

Cindy M -WordMVP-

Hi Patrick,
This TextBox resides on a UserForm where people enter information which is
then placed into a document when the UserForm is closed.
You should be able to use the Application.CheckSpelling method. That allows
you to pass a string to the method and returns true or false. You'd probably
want to work word-for-word through the contents of the box and display any
errors in a second UserForm (much as Word's full spell check does).

The alternative would be to put the text in a (temporary) document and let the
user use Word's built-in spell checking facility.

And no, there's no way to put "squiggles" or any other kind of formatting in
the textbox to indicate errors.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top