Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 09-09-2015, 03:11 PM
Eduardo Care Eduardo Care is offline Grammar check into legacy forms > Text form field. Windows 8 Grammar check into legacy forms > Text form field. Office 2010 64bit
Advanced Beginner
Grammar check into legacy forms > Text form field.
 
Join Date: Aug 2015
Location: Cali
Posts: 32
Eduardo Care is on a distinguished road
Default

Thanks for your time and the answer Paul, as you propose, i have to use a macro for it.

While searching around some sites i found the following:

Code:
Sub myTotalCheckSpelling() 
    Dim iCnt As Integer 
     
    With Application.ActiveDocument 
         'Unprotect if protected
        If .ProtectionType <> wdNoProtection Then _ 
        .Unprotect Password:="" 
         
         'Loop all formfields
        For iCnt = 1 To .FormFields.Count 
             'Select formfield
            .FormFields(iCnt).Select 
             
            #If VBA6 Then 
                 'Only Word > 2000
                Selection.NoProofing = False 
            #End If 
             'Set Language
            Selection.LanguageID = wdEnglishUK 
             'Run spell checker
            Selection.Range.CheckSpelling 
        Next 
         
         'Reprotect without resetting the fields
        .Protect Type:=wdAllowOnlyFormFields, Noreset:=True, Password:="" 
         
        MsgBox "Demo all fields spell check completed", vbInformation 
    End With 
End Sub
Which suites my needs perfectly.

Also for other people having the same problem, they might find this information interesting:

http://word.mvps.org/faqs/macrosvba/...ProtectDoc.htm


Have a good day everyone.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grammar check into legacy forms &gt; Text form field. Check box form field automatically checked Eduardo Care Word 8 09-07-2015 03:31 PM
Grammar check into legacy forms &gt; Text form field. legacy Form Field sunrise06 Word 9 05-02-2015 06:48 PM
Check Box Form Field Book Mark Auto Fill? zacam87 Word VBA 5 08-20-2014 02:56 PM
Using legacy forms with text boxes? Any way around this? svengoolie Word 1 02-01-2012 11:53 AM
Grammar check into legacy forms &gt; Text form field. How do I Convert All Legacy Check Boxes to ActiveX? GreenPolyps Word 1 12-20-2011 05:11 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:32 PM.


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