I am using MS Excel 2000. I have created a protected worksheet to prevent users of the sheet from changing formulas, header columns and other cells that contain informational text. Users, however, do have access to other cells in this sheet where they can enter text. Protecting the worksheet disables the Spell Check feature of Excel so users couldn't run a spell check. I managed to overcome that problem by creating a "spell check" macro which is linked to a graphic on the worksheet such that when the user clicks on the graphic the macro is executed. When the user clicks on the "spell check" graphic, Excel's spelling dialog box is displayed provided there is a spelling error in the worksheet. If there is no spelling error encountered, the user sees nothing leading to doubt as to whether a spell check was indeed executed.
My macro "spell check" code is presented below. Is there any way to add some code that would send a message box back to the user stating that the spell check was executed but no spelling errors were encountered if that were the case?
Sub Spell_Check()
ActiveSheet.Unprotect
Cells.CheckSpelling CustomDictionary:="CUSTOM.DIC", IgnoreUppercase:=False, AlwaysSuggest:=True
ActiveSheet.Protect Contents:=True
End Sub
Thanks in advance for your time,
Rooski
My macro "spell check" code is presented below. Is there any way to add some code that would send a message box back to the user stating that the spell check was executed but no spelling errors were encountered if that were the case?
Sub Spell_Check()
ActiveSheet.Unprotect
Cells.CheckSpelling CustomDictionary:="CUSTOM.DIC", IgnoreUppercase:=False, AlwaysSuggest:=True
ActiveSheet.Protect Contents:=True
End Sub
Thanks in advance for your time,
Rooski