Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Assign Shortcuts

Hi,

If I have ten different macros €¦

I need to assign shortkeys Ctrl 1, Ctrl 2 €¦. Crl 10 to the macors€¦

Please help me solve this...

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Assign Shortcuts

Shortcut keys must be letters.
--
Gary''s Student - gsnu200815
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Assign Shortcuts

Hi,

Tools|Options|Macros

Navigate to your macro in the window and select it. Click 'Options' and
assign your shortcut.

Mike

"Boss" wrote:

Hi,

If I have ten different macros €¦

I need to assign shortkeys Ctrl 1, Ctrl 2 €¦. Crl 10 to the macors€¦

Please help me solve this...

Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Assign Shortcuts

I wish to do it using number...

I can do it using keypad number but cannot using numpad number...

using code

Application.OnKey "^1", "Mymacro"


Thanks!

Boss
"Gary''s Student" wrote:

Shortcut keys must be letters.
--
Gary''s Student - gsnu200815

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Assign Shortcuts

Sub macro6()
Application.OnKey "^{END}", "hello"
End Sub

will work on the numeric keypad, but only with NUMLOCK off.
--
Gary''s Student - gsnu200815


"Boss" wrote:

I wish to do it using number...

I can do it using keypad number but cannot using numpad number...

using code

Application.OnKey "^1", "Mymacro"


Thanks!

Boss
"Gary''s Student" wrote:

Shortcut keys must be letters.
--
Gary''s Student - gsnu200815

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assign keyboard shortcuts Ms Excel Worksheet Functions 0 January 26th 09 12:59 AM
OnKey - usable to assign new shortcuts to existing Excel keyboardshortcuts? wal Excel Programming 2 October 28th 08 12:59 PM
Assign different keyboard shortcuts wal Excel Programming 4 October 26th 08 11:26 PM
Can I assign keyboard shortcuts for special characters in Excel 20 tyhubb Excel Discussion (Misc queries) 1 August 15th 08 06:36 PM
Excel 2003 assign keyboard shortcuts to specific special character Tina Shaw Excel Discussion (Misc queries) 1 July 17th 08 08:55 PM


All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"