#16
|
||||
|
||||
If it is a legacy form field it will not say content control and will not work if the document is not protected for forms. If some content controls do not spell check text then check the proofing setting of the style used to format that control.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#17
|
|||
|
|||
How do you check the proofing setting of the style used to format the content control Graham? I select the Home tab and then chose the normal style for the content control, which I assumed would of allowed spell checking.
|
#18
|
||||
|
||||
By default the Normal style does include spell checking. Spell checking does not occur until you complete the word, either by adding e.g. a space, or clicking the next control.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#19
|
|||
|
|||
But how do you check the proofing setting of the style used Graham?
|
#20
|
||||
|
||||
Right click the status bar and add Language. You can then check the language and the proofing for any selected text.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#21
|
|||
|
|||
I couldn't get it working with your code but I got it working with this code,
Code:
Private Sub CommandButton3_Click() ActiveDocument.Unprotect ActiveDocument.CheckSpelling ActiveDocument.CheckGrammar ActiveDocument.Protect _ Type:=wdAllowOnlyFormFields, _ NoReset:=True, _ Password:="" End Sub The only problem is that if you press cancel on the spell checker I get an error message saying "The ToolsProtectDocument is currently disabled". |
#22
|
|||
|
|||
...........
|
#23
|
|||
|
|||
I know that with content controls, the spelling is underlined if there is an error but I still want the spell check to run.
|
#24
|
||||
|
||||
Press F7 to run a spell check. There is no need for a macro, nor to unprotect the form..
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#25
|
|||
|
|||
I press F7 and nothing happens. I unprotect the document and F7 runs the spell checker but when it is protected, it won't run.
|
#26
|
|||
|
|||
Hang on, if I have the cursor within the content control, it will run. Thanks Graham
|
#27
|
|||
|
|||
Actually, I think when I tried it the other day, it was unprotected. Now I have protected the form and F7 won't do anything.
|
#28
|
|||
|
|||
Actually, got it working, just needed to have a data entry field selected to protect it. Thanks for your help Graham.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Spell Check stopped in middle of document | bsuedmeyer | Word | 6 | 03-20-2016 10:06 AM |
Spell Check is marking ALL words copied from downloaded document as mispelled | silveringofrose | Word | 8 | 03-13-2016 09:23 AM |
Protected Document (Form) that allows Spell Check | beve56 | Word | 3 | 03-21-2014 06:15 PM |
Spell check checking only part of document | Adeyo | Word | 1 | 02-24-2013 10:49 PM |
Spell check not working correctly in table of form document | troybuell | Word | 1 | 07-23-2012 12:08 PM |