Re: VB - Spell Check a Textbox
Its all optional arguments but these are what they are in 200+
.Documents.Add([Template], [NewTemplate], [DocumentType], [Visible])
You can specify a template to base the document creation upon, specify this is to be a new template, doc type has several types it could be, and if to show the document or make it hidden.
All these arguments can be seen in the Object Browser of Word and help file too for more info then what I posted. :).
Re: VB - Spell Check a Textbox
Hello,
I'm new here and have just found your spell check VB code.
It works a treat as a function embedded in a Module/Form BUT the Word spell check box/form is hidden.
The only way I can get to see it is if I clear the desktop and then click on my program's task bar button.
Do you know a way of forcing the spell check form to the front and visible?
(I am running Vista :mad: and have noticed that your example in #44 still hides the spell check form as above. Not sure if this is relevant)
Thanks
Re: VB - Spell Check a Textbox
http://www.vbforums.com/attachment.p...id=47243&stc=1
Sorry, but since I assume that your problem is Vista related and I don't have Vista, I can't do anything about it. You might want to try the spell checker in RobDog888's signature.
Re: VB - Spell Check a Textbox
Thanks for the quick reply Mr Martin.
I have seen Mr Dog888's code but it is too bespoke/specialized for my application. I need a more integrated function like yours.
I have seen this at the MS site
http://support.microsoft.com/kb/243844/en-us
which doesn't hide the Spell checker quite as well in Vista :)
It is visible in the taskbar however and so it just needs one to click it to reveal it. Not too bad a problem.
I will use your error checking etc to check for the presence of Word and also produce a msgbox to tell the user when the spell check is complete.
Thank you for your help Mr Martin. I have rated you :thumb:
Re: VB - Spell Check a Textbox
It is very good program.
Is it possible that it do spell checking for editbox loated in external applications .There is an application that has richedit box with following class information. Could you tell me how to make your program work with it? For example after typing on that application i want to hit F11 and it does spell check for me.
Furthermore, i have word xp is it possible to do spell checking as i type by getting red line under words that are not correct?
Looking forward for your reply.Thanks
RichEdit20A
#32770
AtlAxWin71
ATL:006ED050
WTL_SplitterWindow
WTL_SplitterWindow
WTL_SplitterWindow
WTL_SplitterWindow
DlgGroupChat Window Class
window that holds that edit box class infor:
DlgGroupChat Window Class
Re: VB - Spell Check a Textbox
I'm sorry but I can't help you with that.
Re: VB - Spell Check a Textbox
I'd love to use this code to add the spell check function to my app. I have users ranging from word 2K to 2K7, so does anyone know if there is a modification that is needed to include word version beyond 2k3? Also, I will be running the code from forms in access 2k7 runtime only. Doing a direct reference to spellcheck causes an error on any machines without office 2k7, so this code seems like the right trick?
Re: VB - Spell Check a Textbox
Great code guys thanks alot.
Re: VB - Spell Check a Textbox
Is this thread still being looked at ? I have a problem with the following...
strResult = Left(objDoc.Content, Len(objDoc.Content) - 1)
There is no 'left' in vb.net I tried substring, but objDoc.Content (or.ToString) does not give the corrected text.
Re: VB - Spell Check a Textbox
The code as supplied is VB6 and not .Net.
Re: VB - Spell Check a Textbox
...the rest works OK in .net. What changes to I have to make for .net, or is there a totaly different approach ?
Re: VB - Spell Check a Textbox
I am new to this forum and this is my first post. Not sure if this thread is still active but am seeking advice as a newbie!
I have applied Martin's code (its excellent!) to my application (VB6, Office 2003 under XP). It all works fine apart from one annoying behaviour I cannot figure. When the Word spell checker form is displayed, it does not always appear at the front of the screen. But this behaviour is inconsistent - sometimes it does, and sometimes not and I have been unable to identify why this variation is occurring.
Is there a foolproof method of forcing the spell checker form to the front of the display area when the spell checking is invoked?
Re: VB - Spell Check a Textbox
As far as I remember nobody else has reported this issue, but I'll see if I can reproduce it. In any case you might want to try RobDog's similar code here.
Re: VB - Spell Check a Textbox
Martin,
Thanks for the prompt response - I may be being dense (sorry!) but the link for Robdog's code doesn't appear to take me anywhere! Can you advise where I can see his code to try it? :o
Thanks
Re: VB - Spell Check a Textbox
Try clicking the VB/Office Guru™ Word SpellChecker™ VB6 link in his signature (see post #81).
Re: VB - Spell Check a Textbox
Anyone Know How To Do This In C#?
Re: VB - Spell Check a Textbox
I have a VB.NET version in my signature and you can use one of those converters to convert it to C#
Re: VB - Spell Check a Textbox
can it be done for Office 2007??????////////
sorry fr reviving this old post!!!!!!
thanx in advance
wiz....
Re: VB - Spell Check a Textbox
Did you read the last half-dozen or so posts?
Re: VB - Spell Check a Textbox
i have been and cudn't find any thing related to Office 2007!!!!
Re: VB - Spell Check a Textbox
You only need to use Late Binding in order to support multiple compatible versions. See my FAQ on Late Binding - http://www.vbforums.com/showthread.php?t=406640 for more and code examples.