Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 07-05-2019, 01:19 AM
gmayor's Avatar
gmayor gmayor is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #17  
Old 07-07-2019, 06:22 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

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.
Reply With Quote
  #18  
Old 07-07-2019, 09:02 PM
gmayor's Avatar
gmayor gmayor is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #19  
Old 07-08-2019, 04:24 AM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

But how do you check the proofing setting of the style used Graham?
Reply With Quote
  #20  
Old 07-08-2019, 05:01 AM
gmayor's Avatar
gmayor gmayor is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #21  
Old 07-09-2019, 05:10 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

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".
Reply With Quote
  #22  
Old 07-09-2019, 05:56 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

...........
Reply With Quote
  #23  
Old 07-09-2019, 06:21 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

I know that with content controls, the spelling is underlined if there is an error but I still want the spell check to run.
Reply With Quote
  #24  
Old 07-09-2019, 07:54 PM
gmayor's Avatar
gmayor gmayor is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

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
Reply With Quote
  #25  
Old 07-09-2019, 08:18 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

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.
Reply With Quote
  #26  
Old 07-09-2019, 08:19 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

Hang on, if I have the cursor within the content control, it will run. Thanks Graham
Reply With Quote
  #27  
Old 07-11-2019, 04:54 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

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.
Reply With Quote
  #28  
Old 07-14-2019, 04:04 PM
dpaton05 dpaton05 is offline How can you run spell check on a protected document Windows 10 How can you run spell check on a protected document Office 2016
Novice
How can you run spell check on a protected document
 
Join Date: Jul 2019
Posts: 19
dpaton05 is on a distinguished road
Default

Actually, got it working, just needed to have a data entry field selected to protect it. Thanks for your help Graham.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can you run spell check on a protected document Spell Check stopped in middle of document bsuedmeyer Word 6 03-20-2016 10:06 AM
How can you run spell check on a protected document 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
How can you run spell check on a protected document Spell check not working correctly in table of form document troybuell Word 1 07-23-2012 12:08 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft