Share via

How to delete a shortcut key in a script?

George, Debra 20 Reputation points
2026-04-23T11:38:31.8733333+00:00

I created a script in Excel and attached a shortcut key to it (Ctrl+f). I then realized that the script would only work for me and not the rest of my group so I deleted the script. I thought that deleting the script would also delete the shortcut key, but if I use the Ctrl+f, thinking I'm doing a Find function, it tries to run that script that I deleted.

How do I delete that "shortcut key" that I had attached to my deleted script?

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments

Answer accepted by question author

  1. Q&A Assist
    2026-04-23T11:38:43.39+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    In Excel, the shortcut key is stored with the macro, not with the script file itself. Deleting the macro code does not always clear the shortcut assignment if the macro entry still exists in the workbook/template.

    To remove the shortcut key:

    1. Open the workbook where the macro originally lived.
    2. On the Developer tab, select Macros.
    3. In the list, look for the macro name that had the Ctrl+F shortcut.
    4. Select that macro and click Delete.

    If the macro is already gone but the shortcut is still intercepted, re‑create a dummy macro with the same name, assign no shortcut (or a different one), then delete that macro again via Developer > Macros > Delete so Excel clears the binding.

    If the shortcut was assigned through Word-style keyboard customization (for example, via Customize Keyboard), remove it from there by:

    1. Opening the keyboard customization dialog.
    2. Navigating to the command list.
    3. Selecting the command that has the shortcut.
    4. In Current keys, selecting the shortcut and choosing Remove.

    After removal, Ctrl+F will revert to Excel’s default Find behavior.


    References:

    Was this answer helpful?

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.