Jay
Wed Jul 20 20:30:10 CDT 2005
On Wed, 20 Jul 2005 16:28:29 -0400, "Peter Aitken"
<paitken@CRAPnc.rr.com> wrote:
>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?
Hi Peter,
There's nothing built into VBA to do this, but VBA can call Win32 API
functions just like VB can. The function SetNumLockKey at
http://www.devx.com/VB-2-the-Max/Tip/19181/0?trk=MSCP works perfectly
well in VBA.
That said, it's unlikely someone slipped this into your client's
system without their knowledge.
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ:
http://word.mvps.org