Peter Aitken said:
A client claims that a VBA macro is turning numlock off. I looked in the
docs and see no way for VBA to do this - tell whether numlock is on or off,
yes, but change it, no. Any ideas?
Could be that some other software is changing the state.
To determimine whether the cause is your code, I would try the following:
1. Add code to the macro to check the state of NumLock when the macro
starts, and save that state in a variable.
2. Add code to the macro to check the state of NumLock when the macro ends.
If the state has changed, report this and restore the initial state using
the SetNumLockKey API. Of course, you would have to further investigate why
the state is changing.
1st thing to look for is whether your code is using code in libraries that
might cause this.
Another is whether your code is creating. opening, closing docs that might
cause Auto* macro to run, which might use code that causes the problem.
Another cause could be add-ins tat the client has installed and you do not.
For example, when I installed Omni Page Pro Office 14, I found that there is
an AutoClose in that add-in that does something, let's see if I can say this
politely, STUPID!