ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Paul B (https://www.excelbanter.com/excel-worksheet-functions/102226-paul-b.html)

Tonks

Paul B
 
Hi Paul. Thanks for your reply to "Spell check" in a protected sheet. I
copied and pasted your macro directly, but errors occur. I am not familiar
with writing codes. Would you mind revisiting my request and editing your
code input to be exactly correct so i can paste it in. Thanks for your
trouble.

Paul B

Paul B
 
Tonks, best to stay in the original post, word wrap may have been the
problem, see if this will work,

Sub Spell_Check()
'spell check a protected sheet
Const Password = "123" '**Change password here**
ActiveSheet.Unprotect Password:=Password
Cells.CheckSpelling CustomDictionary:= _
"CUSTOM.DIC", IgnoreUppercase:=False _
, AlwaysSuggest:=True
ActiveSheet.Protect Password:=Password
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"Tonks" wrote in message
...
Hi Paul. Thanks for your reply to "Spell check" in a protected sheet. I
copied and pasted your macro directly, but errors occur. I am not

familiar
with writing codes. Would you mind revisiting my request and editing your
code input to be exactly correct so i can paste it in. Thanks for your
trouble.





All times are GMT +1. The time now is 06:45 AM.

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