G
Guest
I have successfully used the code from a previous discussion post to activate
the spell check function in a protected worksheet.
However when I share the workbook and run the macro the error: "400"
appears. When I go to the Help option the help screen is blank.
Does anyone have any idea how I can use the spell check in a protected
worksheet within a shared workbook?
The code used from the previous discussion is shown below.
Many thanks
Dave
Cats
Requires VBA to unprotect the sheet, do the spellcheck then reprotect the
sheet.
Similar to.......
Sub Spell_Check()
ActiveSheet.Unprotect Password:="justme"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub
Gord Dibben Excel MVP
the spell check function in a protected worksheet.
However when I share the workbook and run the macro the error: "400"
appears. When I go to the Help option the help screen is blank.
Does anyone have any idea how I can use the spell check in a protected
worksheet within a shared workbook?
The code used from the previous discussion is shown below.
Many thanks
Dave
Cats
Requires VBA to unprotect the sheet, do the spellcheck then reprotect the
sheet.
Similar to.......
Sub Spell_Check()
ActiveSheet.Unprotect Password:="justme"
Cells.CheckSpelling SpellLang:=1033
ActiveSheet.Protect Password:="justme", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End Sub
Gord Dibben Excel MVP