Had a simple code to disable the F1 key that worked great in Excel 2010, got force updated to '13 over the weekend and now I get this error when I launch Excel:
And the code I use is this, saved into ThisWorkbook on the Personal.xlsb:
Did 2013 discontinue something? Is there an updated code I can use? Any tips/help/etc? I hate that pesky F1 key with a passion... I'm no VBA expert, I just copied that macro off this forum a few years back I think.
Thanks,
Code:
Run-time error '50290':
Method 'OnKey' of object '_Application' failed
And the code I use is this, saved into ThisWorkbook on the Personal.xlsb:
Code:
Private Sub Workbook_Open()'
' DisableF1 Macro
'
Application.OnKey "{F1}", vbNullString
'
End Sub
Did 2013 discontinue something? Is there an updated code I can use? Any tips/help/etc? I hate that pesky F1 key with a passion... I'm no VBA expert, I just copied that macro off this forum a few years back I think.
Thanks,