Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Add-In Shortcut key

I am trying to assign a shortcut key to a macro in an add-in. I added the
following to ThisWorkbook

Private Sub Workbook_Open()
Application.OnKey "+^{R}", "Liquidity.LiquidityCollFormat"
Application.OnKey "^{R}", "Liquidity.LiquidityResize"
End Sub

but when I try to run it I get the message, The Macro c:\... cannot be found.

Where have I gone wrong?

Many thanks for any assistance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ben Ben is offline
external usenet poster
 
Posts: 509
Default Add-In Shortcut key

You have this assigned as a PRIVATE SUB, the shortcut keys can not work with
a private sub. make Sub Workbook_open()
also it is possible it is pointing to a macro in a workbook that does not
exist. Check the add-in location.

"xgirl" wrote:

I am trying to assign a shortcut key to a macro in an add-in. I added the
following to ThisWorkbook

Private Sub Workbook_Open()
Application.OnKey "+^{R}", "Liquidity.LiquidityCollFormat"
Application.OnKey "^{R}", "Liquidity.LiquidityResize"
End Sub

but when I try to run it I get the message, The Macro c:\... cannot be found.

Where have I gone wrong?

Many thanks for any assistance.

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
shortcut has change or move so this shortcut can not open bakerstreet Excel Worksheet Functions 2 April 2nd 10 01:21 PM
Shortcut Alam Excel Discussion (Misc queries) 1 December 6th 07 07:03 AM
Kb shortcut Makenzi Excel Discussion (Misc queries) 1 April 12th 07 08:42 PM
Shortcut SJT Excel Discussion (Misc queries) 1 February 23rd 07 06:17 PM
Shortcut Daniel - Sydney Excel Discussion (Misc queries) 4 November 23rd 05 10:56 PM


All times are GMT +1. The time now is 06:33 PM.

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

About Us

"It's about Microsoft Excel"