Spell check in protected cells?

Tyler Durden

New Member
Joined
Apr 23, 2002
Messages
17
Is there any way to run the spell check on a protected cell/sheet? I have a form that will be a mixture of text and numbers. Some of the cells will need to be spell checked but it seems that once I protect the sheet, spell-check is disabled. Any help?

Thank you in advance.
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
You will need to record or write a macro that unprotects the sheet , does the spellcheck, and then reprotects the sheet.
 
Upvote 0
When I run the macro it still asks me for my password even though I recorded it during the macro recording...is there something I need to do to embed my password into the macro?
 
Upvote 0
Place this line in the macro code at the appropriate place

Worksheets("Sheet1").Unprotect("password")

Also, Worksheet("Sheet1").Protect("password")to reprotect
This message was edited by lenze on 2002-04-26 13:44
This message was edited by lenze on 2002-04-26 13:48
This message was edited by lenze on 2002-04-26 13:48
 
Upvote 0
Often when I record a macro, it does not record the actual password. I find that I have to manually add it to the code, as above.
 
Upvote 0
When I type in my password for the "Protect" command, I receive an error that says:
"Compile Error: Expected: End of Statement".

Am I placing my password in the wrong spot? Here is what the code looks like:

ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
End Sub

?????
 
Upvote 0
I don't see where you're putting your password in that line. This line of code will protect your worksheet without using a password.

The first rule of password protection is to create a password.

If you want to add a password use something like this:<pre>
ActiveSheet.Protect Password:="FightClub", DrawingObjects:=True, Contents:=True, Scenarios:=True</pre>

_________________<font color = green> Mark O'Brien
This message was edited by Mark O'Brien on 2002-04-29 09:55
 
Upvote 0

Forum statistics

Threads
1,214,545
Messages
6,120,132
Members
448,947
Latest member
test111

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top