|
-
Jul 30th, 2010, 05:40 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Check spelling of textbox
G’day everyone. I’m looking for a nice, neat simple solution for running a spell check on the contents of some text boxes in a form. The form, which is attached to a Word 2003 template, spits information into a Word document. I would like to use Word’s spelling checker (so that the user gets suggestions for incorrectly spelled words) and I would like to link it to the form so that the user sees the text box with the problem spelling as they are going through the spell check. (I don’t want to check the entire document as it also contains text that has words and abbreviations that are not in use in the standard dictionary Word provides.)
I’ve searched for possible solutions. Most of these are written for Excel and involve opening and then closing an instance of Word, which, since I’m working in Word, wouldn’t work. I’ve seen one solution for Access but the command it uses isn’t available in Word.
-
Jul 30th, 2010, 07:40 AM
#2
Re: Check spelling of textbox
The Word spell checker checks a document, I doubt you can use it to work on a form. What is this access command. If you found a way to do what you want in Access that that is probably your best place to start.
Or you can make a new word document, copy from your form what you want to check, run the spell checker and copy the results back to your form.
Unless anyone else has any better ideas.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Jul 30th, 2010, 08:37 AM
#3
Thread Starter
Addicted Member
Re: Check spelling of textbox
Working from Access isn't an option, as this project is for work and not all of us have access to Access. I am beginning to suspect that creating a second document may be the only option, although it is not as elegant a solution as I would like.
-
Jul 30th, 2010, 09:22 AM
#4
Re: Check spelling of textbox
Unfortunately when you use someone else's tool in a way it wasn't intended, chances are you have to make sacrifices. All you need is a dictionary and you can easily make your own spell checker. But the logic for recommendations isn't easy.
I believe you can put textboxes in a document. Don't know if the spell checker checks those. And if you really want a form then it doesn't matter.
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Jul 30th, 2010, 12:16 PM
#5
Addicted Member
Re: Check spelling of textbox
Hi Resource Dragon,
Take a look at the ideas and code at this link.
http://gregmaxey.mvps.org/Spell%20Ch...%20Entries.htm
-
Jul 30th, 2010, 12:20 PM
#6
Re: Check spelling of textbox
Nice find man!! Just what the Dragon ordered!
VB6 Library
If I helped you then please help me and rate my post!
If you solved your problem, then please mark the post resolved
-
Jul 30th, 2010, 12:24 PM
#7
Re: Check spelling of textbox
I’ve searched for possible solutions. Most of these are written for Excel and involve opening and then closing an instance of Word, which, since I’m working in Word, wouldn’t work.
It will 
Simply create a new word document and set it's(document's and not application's) visible property to 'false'
I believe Marty has posted something how to use that facility in one of the threads in codebank... Let me look it for you...
Edit: Got it....
By Marty
http://www.vbforums.com/showthread.php?t=246451
And see the below by Rob (Nice One!)
http://www.vbforums.com/showthread.php?t=350402
Last edited by Siddharth Rout; Jul 30th, 2010 at 12:32 PM.
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 30th, 2010, 06:52 PM
#8
Thread Starter
Addicted Member
Re: Check spelling of textbox
I've had a look at Greg Maxey's solution that SQALDOman pointed out. It looks like it should do the trick. Thanks, gang!
cheers
The Dragon
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|