How can I activate spell check in a protected sheet

J

jaf

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
 
C

CKBW

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
 
G

Gord Dibben

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top