using Spell check on protected sheet

  • Thread starter Thread starter Pat
  • Start date Start date
P

Pat

Hello,

I have selected sections of a worksheet and Unlocked the Cells so that when
I protect the sheet the user can still enter in certain cells. However
Spell Check is not available in any cells.

Is there a way to have the sheet protected but allow the user to the use of
Spell Check in the cells that they have access too.

I look forward to any help.

Thank you!
 
Pat,

Use a macro to fleetingly unprotect the sheet and then re-protect. Alt +F11
to open VB editor, right click 'ThisWorkbook' and insert module and paste the
code in

Put a button on your sheet to call it


Sub Stantial()
ActiveSheet.Unprotect Password:="MyPass"
ActiveSheet.Cells.CheckSpelling SpellLang:=2057
ActiveSheet.Protect Password:="MyPass"
End Sub

Mike
 
I had thought of a Macro - however would one macro allow someone to stop and
correct the spelling and then continue to protect the sheet? Or would it
involve two macros?
 
Hi,

The macro I gave you does precisely that, it unprotects the sheet for the
spellcheck and re-protects on completion.

Mike
 
WOW! that is awesome.
One more snag thou - is it possible to choose the area that we want spell
check to work on? This particular file has a lot of abbreviations and
formulas which spell check stops at. The area I would like to have checked
is B7 - I25

Thanks again.
 
Pat,

Simplt specify the range

Sub Stantial()
ActiveSheet.Unprotect Password:="MyPass"
ActiveSheet.Range("B7:I25").CheckSpelling SpellLang:=2057
ActiveSheet.Protect Password:="MyPass"
End Sub

Mike
 
PERFECT!!
Mike you are my HERO!
Thank you very much for your quick response and great info. ;)

Have a wonderful weekend.
 
Back
Top