From: Jim Rech (jar...@kpmg.com)
Subject: Re: "sendkeys" number lock problem
Newsgroups: microsoft.public.excel.programming
Date: 2000-11-21 05:09:04 PST
I do not understand what you're trying to do but if it is by chance to turn
NumLock on/off try this:
Declare Sub SetKeyboardState Lib "USER32" (lpKeystate As Any)
Declare Sub GetKeyboardState Lib "USER32" (lpKeystate As Any)
Sub NumOn()
Dim lpbKeyState(128) As Integer
GetKeyboardState lpbKeyState(0)
lpbKeyState(72) = 1
SetKeyboardState lpbKeyState(0)
End Sub
Sub NumOff()
Dim lpbKeyState(128) As Integer
GetKeyboardState lpbKeyState(0)
lpbKeyState(72) = 0
SetKeyboardState lpbKeyState(0)
End Sub
--
Jim Rech
Excel MVP
--
Regards,
Tom Ogilvy
nathan <nat...@qben.com> wrote in message
news:887c01c0c8fb$82750ef0$9ae62ecf@tkmsftngxa02...