Spell check when worksheet is protected

B

Brian

I made a spread sheet for work the has some cells protected then a password.
But once I enable the password, the spell check cannot be used.

Any help would be appreciated
 
G

Gord Dibben

Using a macro is the only work around that I know of.

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
 
G

Gord Dibben

With your workbook open, hit Alt + F11 to open the Visual Basic Editor.

Ctrl + r to open the Project Explorer.

Right-click on your workbook/project and Insert>Module.

Paste the macro into that module.

Alt + q to return to the Excel window.

Protect the sheet with the password "justme"(no quotes)

Then run the macro from Tools>Macro>Macros or assign it to a button or shortcut
key.


Gord
 

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