Custom CommandBars and Shortcuts

M

microb0x

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.
 
J

Jerry Porter

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top