Scroll lock....

X

Ximena

I need to turn my scrl lock key off, I have a wireless keyboard and I think
the "scrlk" key doesnt't work. Is there any other way I can turn it OFF?
Thanks
 
D

Dave Peterson

I think I'd get the manual out. Maybe there's a function button that has to be
held down while you toggle that key.

In fact, you may want to post the name/model of your wireless keyboard--maybe
someone hanging around here uses it.

Or search google for help.

But you can use a macro inside excel that can toggle that setting.

Option Explicit
Declare Function SetKeyboardState Lib "User32" _
(kbArray As Byte) As Long
Declare Function GetKeyboardState Lib "User32" _
(lpKeyState As Byte) As Long
Sub ToggleScrollLock()
Dim KeyState(0 To 255) As Byte
GetKeyboardState KeyState(0)
KeyState(&H91) = 0 ' = 0 for off, = 1 for on
SetKeyboardState KeyState(0)
End Sub


When I tested it, the keyboard light got out of sync with the actual
function--but the SCRL in the statusbar was correct.

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
 

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