change a function key

B

Billy

Is it possible to change, or disable, a function key? I would like to
disable the F1 (Help) key, as I often accidently hit it while trying
to press F2. I know the best solution would be to NOT hit it
accidently, but I was just wondering if disabling or changing the
function keys is possible. I am using Excel 2002 on Windows XP
Profesional.

Tonso
 
D

Dave Peterson

Chip Pearson says that he actually "fixed" his keyboard by taking that key off.
Others say that they left the key, but removed the spring underneath.

But you could use a couple of macros (one to disable and one to enable):

Option Explicit
Sub disableF1()
Application.OnKey "{f1}", ""
End Sub

This would toggle it back to normal.

Sub enableF1()
Application.OnKey "{f1}"
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
 
B

Billy

Chip Pearson says that he actually "fixed" his keyboard by taking that key off.
Others say that they left the key, but removed the spring underneath.

But you could use a couple of macros (one to disable and one to enable):

Option Explicit
Sub disableF1()
Application.OnKey "{f1}", ""
End Sub

This would toggle it back to normal.

Sub enableF1()
Application.OnKey "{f1}"
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:http://www.mvps.org/dmcritchie/excel/getstarted.htm

Thanks Dave...I will try the macro, and if not happy with that
solution, then i will just be more careful. [i do no think that
removing the key is good option]

Tonso
 
C

Chip Pearson

[i do no think that
removing the key is good option]

I've had the F1 key, the CAP LOCK key, and the NUM LOCK key removed from all
my keyboards on all my machines for many years and have never missed them.
Good riddance.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)



Billy said:
Chip Pearson says that he actually "fixed" his keyboard by taking that
key off.
Others say that they left the key, but removed the spring underneath.

But you could use a couple of macros (one to disable and one to enable):

Option Explicit
Sub disableF1()
Application.OnKey "{f1}", ""
End Sub

This would toggle it back to normal.

Sub enableF1()
Application.OnKey "{f1}"
End Sub

If you're new to macros, you may want to read David McRitchie's intro
at:http://www.mvps.org/dmcritchie/excel/getstarted.htm

Thanks Dave...I will try the macro, and if not happy with that
solution, then i will just be more careful. [i do no think that
removing the key is good option]

Tonso
 
D

Dave Peterson

I liked the line you used describing your keyboard--it looks like a hockey
player smiling.



Chip said:
[i do no think that
removing the key is good option]

I've had the F1 key, the CAP LOCK key, and the NUM LOCK key removed from all
my keyboards on all my machines for many years and have never missed them.
Good riddance.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel, 10 Years
Pearson Software Consulting
www.cpearson.com
(email on the web site)

Billy said:
Chip Pearson says that he actually "fixed" his keyboard by taking that
key off.
Others say that they left the key, but removed the spring underneath.

But you could use a couple of macros (one to disable and one to enable):

Option Explicit
Sub disableF1()
Application.OnKey "{f1}", ""
End Sub

This would toggle it back to normal.

Sub enableF1()
Application.OnKey "{f1}"
End Sub

If you're new to macros, you may want to read David McRitchie's intro
at:http://www.mvps.org/dmcritchie/excel/getstarted.htm

Billy wrote:

Is it possible to change, or disable, a function key? I would like to
disable the F1 (Help) key, as I often accidently hit it while trying
to press F2. I know the best solution would be to NOT hit it
accidently, but I was just wondering if disabling or changing the
function keys is possible. I am using Excel 2002 on Windows XP
Profesional.

Tonso

Thanks Dave...I will try the macro, and if not happy with that
solution, then i will just be more careful. [i do no think that
removing the key is good option]

Tonso
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top