This example will assign "MyProcedureName" to the F2 key ...

  Application.OnKey "{F2}", "MyProcedureName"

... you may also want to know how to restore the normal keyboard
function

  Application.OnKey "{F2}"

       ... just leave off the procedure

Hope it helps you !

- Rodney POWELL
[ Microsoft MVP - Excel, 1997-2009 ]

  www.BeyondTechnology.com






On Apr 6, 9:58 am, bipin <bipinbi...@gmail.com> wrote:
> is there an easy way to customize the keyboard
> shortcuts, so a function key will run a macro???
>
> thx,
>         b\p|n
--~--~---------~--~----~------------~-------~--~----~
-------------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
-------------------------------------------------------------------------------------
-~----------~----~----~----~------~----~------~--~---

Reply via email to