To post as a guest, your comment is unpublished.· 2 years agoHi,
The code has been updated with the problem solved, please have a try. Thank you for your comment.
默認情況下，保護工作表後，拼寫功能將被禁用，如下圖所示。 如何在Excel中的受保護工作表中允許拼寫檢查？ 本文可以為您提供幫助。
1。 按 其他 + F11 同時打開 Microsoft Visual Basic for Applications 窗口。
2。 在裡面 Microsoft Visual Basic for Applications 窗口中，單擊 插入 > 模塊。 然後將下面的VBA代碼複製並粘貼到“模塊”窗口中。 看截圖：
Sub ProtectSheetCheckSpellCheck() 'Update by Extendoffice 2018/11/2 Dim xRg As Range On Error Resume Next Application.ScreenUpdating = False With ActiveSheet .Unprotect ("123") Set xRg = .UsedRange xRg.CheckSpelling .Protect ("123") End With Application.ScreenUpdating = True End Sub
備註：在代碼中，數字“ 123”是您為其創建的受保護工作表的密碼。 請根據需要進行更改。
You are guest
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 years agoI'm trying to get a protected worksheet intended to be a form to have those fields that are entered by the form user to get spell check. This seems like you have to run VBA just to check one cell?
To post as a guest, your comment is unpublished.· 2 years agoThanks for this. It has worked well, except that it changes my sheet protection settings every time I run it. I have my sheet protected, but set to allow users to format cells, columns, and rows; but after running this code, the protection is set back to the default. How can I retain my settings?
To post as a guest, your comment is unpublished.· 2 years agoHi, thanks for these steps, but please help!! I'm not getting the spell check window when pressing F5, instead I get a GoTo window listing all the names of the defined data ranges in my workbook. Thanks JulieD
To post as a guest, your comment is unpublished.· 2 years agoHi JulieD,
It's my mistake of the description in step 3. After selecting the cell, you need to go back to the Microsoft Visual Basic for Applications window and then press the F5 key to run the code. Sorry for the mistake and thanks for your comment.