Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 220
Default Application.OnKey problem

I have an add-in that has saved in it a list of keys and procedure names
that I would like to be set whenever the add-in is loaded (which is by
default loaded whenever Excel loads). A list looks something like this:

+^b Personal.xls!ToggleBanding
^w Personal.xls!PrependText
+^w Personal.xls!AppendText
%{F9} Shared.xla!CalculateRange

The problem that I am encountering is that this add-in loads before
Personal.xls, and whenever I press CTRL-w, it attempts to load another
copy of my Personal.xls. It's error message is: "A document with the
name 'Personal.xls' is already open. You cannot open two documents with
the same name, even if the documents are in different folders."

How do I make these shortcut keys work regardless of the order in which
my workbooks load? One way would be since Personal.xls loads last, I
could execute the application.onkey procedures there, but that is not
what I want because other people share this add-in I created, and I do
not want to share my personal.xls. I could also create a custom button
to do it, but I do not want to have to click a button every time i load
excel....

Does anyone have any suggestions? Any help would be most appreciated.
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
problem with Application.ScreenUpdating Betty[_2_] Excel Programming 8 July 23rd 04 09:51 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
Application Problem Stuart[_10_] Excel Programming 7 November 16th 03 05:44 PM
capture users Application.OnKey RB Smissaert Excel Programming 1 September 8th 03 02:49 PM


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