PC Review


Reply
Thread Tools Rate Thread

Custom CommandBars and Shortcuts

 
 
microb0x
Guest
Posts: n/a
 
      31st Aug 2006
Does anyone know if its possible, and if so how, to set a shortcut for
an item in a custom menu bar?

For example, Ctrl+P opens the print dialog, or Ctrl+N opens a new
database.

I would like to be able to set an object in my custom menu bar to use
Ctrl+N shortcut. Is there any way to do this? All standard menu bars
and toolbars are disabled in my app, only customer commandbars are
being used.

 
Reply With Quote
 
 
 
 
Jerry Porter
Guest
Posts: n/a
 
      31st Aug 2006
microb0x,

You can create a shortcut independent of the menu. Use the AutoKeys
macro to create a shortcut key that calls the same function that the
menu calls.

You need to display the Macro Name column, and enter ^N for the macro
name to make Control + N the shortcut key. You would use the RunCode
action in the macro and enter the name of the function.

Jerry

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom CommandBars Fan924 Microsoft Excel Programming 3 1st Mar 2009 02:14 PM
CommandBars & Custom =?Utf-8?B?Sm9obiBKQk0=?= Microsoft Excel Programming 1 16th May 2007 05:44 PM
custom commandbars Wes Peters Microsoft Access Forms 4 26th Nov 2004 10:14 PM
Positioning Custom CommandBars =?Utf-8?B?Uk9DS0lOJyBDSEVS?= Microsoft Word Document Management 1 20th Nov 2004 04:19 PM
Custom faces for custom menus/commandbars Stu Valentine Microsoft Excel Programming 1 17th Sep 2004 04:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:53 AM.