ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How can I activate spell check in a protected sheet (https://www.excelbanter.com/excel-worksheet-functions/193657-how-can-i-activate-spell-check-protected-sheet.html)

CKBW

How can I activate spell check in a protected sheet
 


jaf

How can I activate spell check in a protected sheet
 
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



"CKBW" wrote in message
...



CKBW

How can I activate spell check in a protected sheet
 
Any suggestions on how

"jaf" wrote:

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



"CKBW" wrote in message
...




Gord Dibben

How can I activate spell check in a protected sheet
 
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 wrote:




All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com