Spell check a TextBox

P

Patrick C. Simonds

Is it possible to spell check the contents of a UserForm TextBox?




---
avast! Antivirus: Outbound message clean.
Virus Database (VPS): 000755-1, 07/11/2007
Tested on: 7/11/2007 11:02:48 AM
avast! - copyright (c) 1988-2007 ALWIL Software.
http://www.avast.com
 
D

David Sisson

First I wrote code to copy the contents out of the textbox into a temp
document and run spellcheck on the new range but then I found a much better
(and more thorough) solution on the MVP site:

http://word.mvps.org/FAQs/MacrosVBA/SpellcheckProtectDoc.htm

This solution only works for the Forms collection, not Userforms.

Your original suggestion is the best way.

Copy the contents of the userform textbox to a new document and
perform Spellcheck. Copy the new document text back into the textbox.
 

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

Similar Threads

Set ActiveDocument Variable 13
Multipage UserForm 3
Saving a document 3
Calendar output 1
Document save question 2
Calander is Wrong 2
outlook 2003 inbox 2
How do you hide ..... 2

Top