Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

Symptoms

When you click a button to run a macro to protect or unprotect some worksheets in a workbook in Microsoft Excel 2013, the sheet focus changes instead of staying on the sheet that contains the button.

Resolution

To resolve this issue, apply the following update:

2850006 Description of the Excel 2013 hotfix package (Excel-x-none.msp): December 10, 2013

Registry key information

Important
Follow the steps in this section carefully. Serious problems might occur if you modify the registry incorrectly. Before you modify it, back up the registry for restoration in case problems occur.

After you install this hotfix package, you can follow these steps to enable this hotfix:

  1. Click Start, click Run, type regedit in the Open box, and then click OK.

  2. Locate and then select the following registry subkey:

    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Excel\Options\

  3. On the Edit menu, point to New, and then click DWORD Value.

  4. Type ExcelResetSheetAfterProtection, and then press Enter.

  5. In the Details pane, right-click ExcelResetSheetAfterProtection, and then click Modify.

  6. In the Value data box, type 1, and then click OK.

  7. Exit Registry Editor.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×