How can I activate spell check in a protected sheet

  • Thread starter Thread starter CKBW
  • Start date Start date
You can't.
You can't without unprotecting the sheet.
You can write a macro that will unprotect the sheet, do the spell check,
protect the sheet.

If users are going to run the macro you may want to prevent them from
breaking out of the macro.

John
 
Any suggestions on how

jaf said:
You can't.
You can't without unprotecting the sheet.
You can write a macro that will unprotect the sheet, do the spell check,
protect the sheet.

If users are going to run the macro you may want to prevent them from
breaking out of the macro.

John
 
Sub Spell_Check()
ActiveSheet.Unprotect Password:="justme"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub

Unprotects the sheet, does the spellcheck then reprotects the sheet.

"justme" can be changed to your password.


Gord Dibben MS Excel MVP

On Thu, 3 Jul 2008 15:05:01 -0700, CKBW <[email protected]> wrote:
 
Back
Top