Ron DeBruin's "Enable_Keys" program

X

XP

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...
 
X

XP

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

Ron de Bruin

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top