ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I disable F1 starting the Help screens? (https://www.excelbanter.com/excel-discussion-misc-queries/81804-can-i-disable-f1-starting-help-screens.html)

Jen

Can I disable F1 starting the Help screens?
 
I use F2 (edit) all the time, but often hit F1 by mistake. I would love to
make F1 a dummy key -- nothing happens when you press it...

Ken Johnson

Can I disable F1 starting the Help screens?
 
Hi Jen,

Private Sub Workbook_Open()
Application.OnKey "{F1}", ""
End Sub

pasted into your workbook's ThisWorkbook code module will disable the
F1 key.

Ken Johnson


Patricia Shannon

Can I disable F1 starting the Help screens?
 
I would put it in "this workbook" of the Personal workbook, since it sounds
like you want to use it for all your Excel work.
I found the place to save the Personal workbook by running the following
macro:

Public Sub ShowPaths()

MsgBox Application.StartupPath

End Sub


"Ken Johnson" wrote:

Hi Jen,

Private Sub Workbook_Open()
Application.OnKey "{F1}", ""
End Sub

pasted into your workbook's ThisWorkbook code module will disable the
F1 key.

Ken Johnson




All times are GMT +1. The time now is 02:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com