![]() |
#1
|
|||
|
|||
![]()
Hi,
I am using the following macro to allow spell check on a protected Word form. In one Word form, inserting a form field Macrobutton so the user can click on this to spell check the form works absolutely fine. Code:
Sub SCForm() ActiveDocument.Unprotect Selection.WholeStory Selection.LanguageID = wdEnglishUS ActiveDocument.CheckSpelling ActiveDocument.Protect Type:=wdAllowOnlyFormFields, NoReset:=True End Sub Code:
{ MACROBUTTON SCForm Please click here to spell check } The macro itself will run in all documents via the VB Editor, it only doesn't run from the macro button. The macro itself is stored in Normal>Modules>NewMacros - I have checked the drop down to see if there are more options but it only says (General). I am pulling my hair out! Any ideas gratefully received. |
Tags |
macro, spellcheck, userform |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro (or something) to run Spell Check within rich text content boxes in lock document | NMBELL | Word | 8 | 12-21-2015 04:09 PM |
![]() |
mhblake | Word VBA | 3 | 12-04-2013 04:17 PM |
![]() |
fionnymy | Word | 16 | 04-03-2013 02:39 AM |
![]() |
trlear | Word VBA | 5 | 02-23-2012 04:35 PM |
![]() |
DKerne | Word VBA | 4 | 06-09-2011 11:54 AM |