Fixing a Numeric Keypad Key

by Allen Wyatt
(last updated October 7, 2019)


Geraldine seems to have accidentally changed the functionality of the zero key on her numeric keypad. When she presses it now, she gets a cut/copy/paste menu instead of a zero. Geraldine has no idea why this is happening or how to fix it.

One of the frustrating things about some systems these days—particularly if you are using a laptop computer—is that there are a limited number of keyboard keys and a large number of purposes to which those keys can be put. For instance, if I look at the keyboard on my laptop, I see that the zero key on the numeric keyboard is also marked as "insert." Other keys include other alternative labels for other purposes.

The way you access these other functions is to hold down a modifier key, typically a key marked FN. So, for instance, if I want to access the "insert" function on the zero key on my laptop, I hold down FN as I press the zero key.

This is what it sounds like may be happening with Geraldine's system. Either the FN key is stuck or there is some sort of "lock" key that makes the FN key sticky. When engaged in this manner, the zero key is performing its alternative function. The solution is to turn off the FN key and then the zero key should work as expected.

If that doesn't do the trick, it could be that there is some program that is causing the key to behave differently. Check to see if there is some utility running in the background that maps the keys differently or close all your programs (except Excel) and see if the problem goes away. If so, then you'll know how to solve the issue—diable, quit, or turn off that other program.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (13386) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Office 365.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...


Using Custom Number Formats

Most formatting needs are met by using the predefined formatting options in Excel. The program also allows you to move ...

Discover More

Underlining Text in Cells

Want a quick way to add some underlines to your cell values? It's easy using the shortcuts provided in this tip.

Discover More

Uncovering and Removing Links

Excel allows you to reference data in other workbooks by establishing links to that data. If you later want to get rid of ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Status Bar Summing No Longer Available

When you select a range of cells, Excel normally displays the sum of those selected cells on the status bar. If the sum ...

Discover More

Modifying Error Alerts Received

Excel helpfully lets you know when the data or formulas you've entered in a cell don't make sense. It does this by ...

Discover More

Reference Shortcut

Need to modify how a cell reference, in a formula, is constructed? The shortcut described in this tip will help you step ...

Discover More

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.


If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is five more than 5?

2016-09-24 11:10:10


The simple solution is to turn off the Fn Lock.

When the Fn Lock is on, the cut/copy/paste menu appears instead of a zero.
Press Fn Lock again and it turns off the Fn Lock. Then the zero appears instead of the cut/copy/paste menu.

2015-04-21 09:51:57

Larry W

Thank you very much. Once I placed the "Declare" statement at the top of my module, the "Num-Lock" key stays active. I have about 20 users that complain about this all the time. This will make everyone of them very happy.
Larry W.

2015-04-16 13:42:44

Willy Vanhaelen

Sorry I wrote "at the beginning of your macro" but you must insert it at the very beginning of your module.

2015-04-15 13:21:05

Larry W

Thank you for commenting on my issue.
I tried the "Declare" function right after the "Sub Copy_to_Notepad()" but I get a "Compile error: Only comments may appear after End Sub, End Function, or End Property".
What am I doing wrong? I tried placing the "Declare" statement before the "Sub..." but I got the same error.
Thanks for your help.

2015-03-17 07:18:43

Willy Vanhaelen

Try to add the following line in the beginning of your macro:

Declare Function GetKeyState Lib "user32" (ByVal nVirtKey As Long) As Integer

2015-03-16 10:27:07


I have an issue with the NumLock key turning off whenever this macro is called. Is there a way to prevent the Numlock from turning off? The LET statement is supposed to get the current numlock state and return it to that state, but it doesn't seem to work.

Sub Copy_To_NotePad()
Dim NumLockState As Boolean
Let NumLockState = CBool(GetKeyState(vbKeyNumlock) And 1)

'This will copy the selected range in Excel to Notepad and ask for the name for the saved Text file.
'Save the name of the Worksheet into a placeholder.
BookName = ActiveWorkbook.Name
Shell "notepad.exe", vbNormalFocus
Application.SendKeys "^{v}", True ' Same as CTRL V, or Paste
Application.SendKeys "%(FS)", True 'asks to save the text file. Same as "ALT-FILESave"
Application.SendKeys "%(FX)", True
Application.SendKeys "^{HOME}"
If NumLockState = False Then
SendKeys "{NUMLOCK}", True
End If
End Sub

2015-03-14 23:58:58

Alain de Foenbrune

My laptop keyboard does not react the same way with, a Word doc, an Excel spreadsheet or a Windows live-mail e-mail. Especially with the French punctuation, sometimes what is good for one is not good for the other. I will read carefully all your tips and reading suggestions. Merci

Toshiba Satellite C870D
Microsoft Windows 7
Home Premium 6.1.7601

2015-03-14 10:28:47

Henry Noble

The settings for the PC BIOS usually include a toggle to enable/disable the NumLock key at boot. Check that also.

2015-03-14 07:21:18


The numeric keypad functions are especially nasty on laptops, which use normal field keys to emulate the numeric keypad, with various function-like keys.

This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.