+ Reply to Thread
Results 1 to 4 of 4

keyboard shortcut FOR COMMAND BUTTON

  1. #1
    Forum Contributor
    Join Date
    11-18-2014
    Location
    alex
    MS-Off Ver
    excel
    Posts
    135

    keyboard shortcut FOR COMMAND BUTTON

    I WANT TO MAKE keyboard shortcut FOR COMMAND BUTTON
    FOR EXAMPLE
    WHEN I HIT ON DELETE ON KEYBOARD
    IT HIT COMMAND BUTTON ON EXCEL SHEET
    THANKS

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: keyboard shortcut FOR COMMAND BUTTON

    Have you looked at Application.OnKey?

    You can also assign a shortcut via the Macros dialog (Alt+F8). Enter the name of the macro, and press Options to select a shortcut key (Ctrl + letter or number key, or Ctrl+Shift + letter or number key)

    Please don't type in all caps.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    11-18-2014
    Location
    alex
    MS-Off Ver
    excel
    Posts
    135

    Re: keyboard shortcut FOR COMMAND BUTTON

    sorry what do you mean by application.onkey
    i can't make the code of command button to be macro
    could you tell me how to do that
    Attached Files Attached Files

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: keyboard shortcut FOR COMMAND BUTTON

    Instead of an ActiveX control, just write a sub in a standard code module:

    Please Login or Register  to view this content.
    Then assign a keyboard shortcut as described in the prior post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. code to execute a keyboard shortcut or to execute a toolbar button
    By Gti182 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2015, 12:16 PM
  2. [SOLVED] Keyboard shortcut for the "enter" command
    By Stebobibo in forum Excel General
    Replies: 6
    Last Post: 01-31-2015, 08:22 PM
  3. Replies: 3
    Last Post: 02-21-2014, 10:19 AM
  4. Assign a Keyboard Shortcut to an Active X Command Button
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 07-18-2011, 08:32 AM
  5. Replies: 5
    Last Post: 05-02-2008, 07:24 PM
  6. Replies: 3
    Last Post: 05-05-2006, 06:35 PM
  7. [SOLVED] What is the Keyboard Shortcut of Merge and Centre Tool Command
    By Rao Ratan Singh in forum Excel General
    Replies: 4
    Last Post: 02-14-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1