Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Setting Keyboard Shortcuts for locked XLA add in

Hi all,

We use some external proprietary Excel tools for our work - it's added to
our Excel using an xla add-in. The tools have been added to our menu, and we
usually need to click on the tab, then choose a particular thing we want.
Similar to how we'd need to choose "Save" if we click on "File" at the top
menu.

Now, we use the tools almost constantly, but we hate having to go from the
keyboard to the mouse to activate the tool. We want to set a keyboard
shortcut for each the items in the mu, but the xla add-in itself is locked,
so we can't just modify its code like we would a normal add-in or macro.

Is there a way of achieving this?

We use Excel 2007 on Windows XP, if its relevant.

Thanks in advance!

Harimau

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Setting Keyboard Shortcuts for locked XLA add in

Customize menus
right click the button that runs the procedure in the addin
Assign Macro...
note the Macro name

Now write your own little macro to assign a shortcut key, in this example
Ctrl #

Sub myShortCut()

Application.OnKey "^#", "'theAddin.xla'!macroName"

End Sub

Not the pair of apostrophes that embrace the addin name (normally not
necessary but just in case, followed by an ! and the macro name you noted
from customize menus.
See OnKey in help

You could put this in your Personal.xls, assign Ctrl-# to "myShortCut"
When you press Ctrl-# it will get re-assigned to the macro in the addin

Regards,
Peter T



"Harimau" wrote in message
...
Hi all,

We use some external proprietary Excel tools for our work - it's added to
our Excel using an xla add-in. The tools have been added to our menu, and
we
usually need to click on the tab, then choose a particular thing we want.
Similar to how we'd need to choose "Save" if we click on "File" at the top
menu.

Now, we use the tools almost constantly, but we hate having to go from the
keyboard to the mouse to activate the tool. We want to set a keyboard
shortcut for each the items in the mu, but the xla add-in itself is
locked,
so we can't just modify its code like we would a normal add-in or macro.

Is there a way of achieving this?

We use Excel 2007 on Windows XP, if its relevant.

Thanks in advance!

Harimau



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Setting Keyboard Shortcuts for locked XLA add in

Thanks for the reply! However, that option doesn't seem to work for us.

When we right click on the menu item that triggers the add in, only the
following options come up:

"Add Group to Quick Access Toolbar" (greyed out)
"Customize Quick Access Toolbar"
"Show Quick Access Toolabr below the Ribbon"
"Minimise the Ribbon"

And yes, when we tried putting the menu item in the Quick Access toolbar
(using the Customize screen), it doesn't work.


--
Location: Sydney
Occupation: Actuarial Consultant (Project Finance/Financial Modeling)


"Peter T" wrote:

Customize menus
right click the button that runs the procedure in the addin
Assign Macro...
note the Macro name

Now write your own little macro to assign a shortcut key, in this example
Ctrl #

Sub myShortCut()

Application.OnKey "^#", "'theAddin.xla'!macroName"

End Sub

Not the pair of apostrophes that embrace the addin name (normally not
necessary but just in case, followed by an ! and the macro name you noted
from customize menus.
See OnKey in help

You could put this in your Personal.xls, assign Ctrl-# to "myShortCut"
When you press Ctrl-# it will get re-assigned to the macro in the addin

Regards,
Peter T



"Harimau" wrote in message
...
Hi all,

We use some external proprietary Excel tools for our work - it's added to
our Excel using an xla add-in. The tools have been added to our menu, and
we
usually need to click on the tab, then choose a particular thing we want.
Similar to how we'd need to choose "Save" if we click on "File" at the top
menu.

Now, we use the tools almost constantly, but we hate having to go from the
keyboard to the mouse to activate the tool. We want to set a keyboard
shortcut for each the items in the mu, but the xla add-in itself is
locked,
so we can't just modify its code like we would a normal add-in or macro.

Is there a way of achieving this?

We use Excel 2007 on Windows XP, if its relevant.

Thanks in advance!

Harimau




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default Setting Keyboard Shortcuts for locked XLA add in

You did say in your OP you are using Excel 2007 but apologies I didn't
notice, I explained how to get the macro name from the menu button in
earlier versions.

I don't have '2007 but I assume there are equivalent methods first to find
the macro name then add a keyboard shortcut. Hopefully someone might chime
in.

Regards,
Peter T

"Harimau" wrote in message
...
Thanks for the reply! However, that option doesn't seem to work for us.

When we right click on the menu item that triggers the add in, only the
following options come up:

"Add Group to Quick Access Toolbar" (greyed out)
"Customize Quick Access Toolbar"
"Show Quick Access Toolabr below the Ribbon"
"Minimise the Ribbon"

And yes, when we tried putting the menu item in the Quick Access toolbar
(using the Customize screen), it doesn't work.


--
Location: Sydney
Occupation: Actuarial Consultant (Project Finance/Financial Modeling)


"Peter T" wrote:

Customize menus
right click the button that runs the procedure in the addin
Assign Macro...
note the Macro name

Now write your own little macro to assign a shortcut key, in this example
Ctrl #

Sub myShortCut()

Application.OnKey "^#", "'theAddin.xla'!macroName"

End Sub

Not the pair of apostrophes that embrace the addin name (normally not
necessary but just in case, followed by an ! and the macro name you noted
from customize menus.
See OnKey in help

You could put this in your Personal.xls, assign Ctrl-# to "myShortCut"
When you press Ctrl-# it will get re-assigned to the macro in the addin

Regards,
Peter T



"Harimau" wrote in message
...
Hi all,

We use some external proprietary Excel tools for our work - it's added
to
our Excel using an xla add-in. The tools have been added to our menu,
and
we
usually need to click on the tab, then choose a particular thing we
want.
Similar to how we'd need to choose "Save" if we click on "File" at the
top
menu.

Now, we use the tools almost constantly, but we hate having to go from
the
keyboard to the mouse to activate the tool. We want to set a keyboard
shortcut for each the items in the mu, but the xla add-in itself is
locked,
so we can't just modify its code like we would a normal add-in or
macro.

Is there a way of achieving this?

We use Excel 2007 on Windows XP, if its relevant.

Thanks in advance!

Harimau






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
Setting Display of Keyboard Shortcuts in MenuBar and/or Ribbon Ray in Jacksonville Setting up and Configuration of Excel 0 October 29th 09 06:21 PM
Keyboard Shortcuts jovch Excel Discussion (Misc queries) 1 August 25th 08 07:57 PM
Keyboard shortcuts for COM Add-ins? Nick Hebb[_2_] Excel Programming 0 July 20th 07 09:12 PM
Keyboard Shortcuts Conan Kelly Excel Programming 5 February 28th 06 05:58 PM
Keyboard Shortcuts Ronald Dodge Excel Programming 3 February 25th 04 03:56 PM


All times are GMT +1. The time now is 02:24 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"