Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Application.OnKey Macro Cannot be found

Finally solved this problem.
It had to do with the fact that another open workbook had a Sub with the
same name.
Not sure how this could cause trouble as the workbook was specified with the
OnKey.
Also didn't come across this possibility in my searches, but pleased this is
solved.

RBS

"RB Smissaert" wrote in message
...
Have an .xla add-in that is opened but not loaded (not ticked under Tools,
Add-ins).
In the Workbook_Open event I run a Sub to create a menu and this Sub sets
some
keyboard shortcuts like this:

Application.OnKey "^+v", "Macro1"

Macro1 is in a normal code module.

When I do the keyboard shortcut I get the exact message:
The macro "C:\ExcelAddins\Reporting.xla'!Macro1' cannot be found.

I also tried to fully set the macro like this:
Application.OnKey "^+v", "Reporting.xla!Module1.Macro1"

But same result.
The file is present in the folder, the .xla file is open,the macro is
present in
a normal module, so what causes the above message?
I had this working fine before and no idea why it is not now.

Thanks for any advice.


RBS






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
Application.OnKey during Copy mode Carim Excel Programming 0 March 19th 06 07:11 PM
Application.OnKey Norman Jones Excel Programming 0 January 27th 05 01:26 AM
Application.OnKey problem R Avery Excel Programming 0 July 8th 04 06:38 PM
application.onkey doesn't work bob Excel Programming 2 May 10th 04 11:06 AM
Application.OnKey problem Phillip Reeves[_2_] Excel Programming 1 January 23rd 04 06:46 PM


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