Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Ron DeBruin's "Enable_Keys" program

Using Office 2007 and Win XP;

I'm using code from Ron De Bruin's page in which key combinations are first
disabled then enabled using "Enable_Keys" program at:

http://www.rondebruin.nl/key.htm

This program runs fine when I run it stand alone; but when I call it from
another module, if blows up in the section I've copied below:

For lX = 1 To 255 'enable key combinations with all other keys
Application.OnKey vKeyCombo & Chr$(lX)
Next lX

However, I find that there are certain values it hangs on, so far if I've
identified the following values: 0, 37, 40, 41, 42, 43, 91, 93, 94, 123,
125, 128, 129, 130, 131, 132, 133...

This is not complete as I am still testing, but does anyone know what is
going on here? Why does it run okay stand alone, but not okay when called
from another module?

Thanks in advance...
  #2   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Ron DeBruin's "Enable_Keys" program


Sorry, I forgot to mention that the key combination issue occurs with the
plus (+) sign only...

"XP" wrote:

Using Office 2007 and Win XP;

I'm using code from Ron De Bruin's page in which key combinations are first
disabled then enabled using "Enable_Keys" program at:

http://www.rondebruin.nl/key.htm

This program runs fine when I run it stand alone; but when I call it from
another module, if blows up in the section I've copied below:

For lX = 1 To 255 'enable key combinations with all other keys
Application.OnKey vKeyCombo & Chr$(lX)
Next lX

However, I find that there are certain values it hangs on, so far if I've
identified the following values: 0, 37, 40, 41, 42, 43, 91, 93, 94, 123,
125, 128, 129, 130, 131, 132, 133...

This is not complete as I am still testing, but does anyone know what is
going on here? Why does it run okay stand alone, but not okay when called
from another module?

Thanks in advance...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Ron DeBruin's "Enable_Keys" program

Hi XP+

If I call the code from my site from another module I have no problem

I see you have changed the code so maybe there is a error in your code

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"XP" wrote in message ...
Using Office 2007 and Win XP;

I'm using code from Ron De Bruin's page in which key combinations are first
disabled then enabled using "Enable_Keys" program at:

http://www.rondebruin.nl/key.htm

This program runs fine when I run it stand alone; but when I call it from
another module, if blows up in the section I've copied below:

For lX = 1 To 255 'enable key combinations with all other keys
Application.OnKey vKeyCombo & Chr$(lX)
Next lX

However, I find that there are certain values it hangs on, so far if I've
identified the following values: 0, 37, 40, 41, 42, 43, 91, 93, 94, 123,
125, 128, 129, 130, 131, 132, 133...

This is not complete as I am still testing, but does anyone know what is
going on here? Why does it run okay stand alone, but not okay when called
from another module?

Thanks in advance...

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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Using the functions "LARGE"and "SMALL" in an Excel program Ed[_30_] Excel Programming 0 March 18th 08 05:14 PM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


All times are GMT +1. The time now is 05:18 AM.

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"