View Single Post
  #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...