Article ID: 101567
Article Last Modified on 10/11/2006
' Macro to turn off keyboard entry.
Sub KeyboardOff()
' Sets CTRL+D to activate KeyboardOn.
Application.OnKey "^d", "KeyboardOn"
Application.DataEntryMode = True
End Sub
' Macro to restore keyboard entry.
Sub KeyboardOn()
Application.DataEntryMode = False
End Sub
A1: =ON.KEY("^d","DataEntryOff")
A2: =ENTER.DATA(2)
A3: =RETURN()
A4:
A5: DataEntryOff
A6: =ENTER.DATA(FALSE)
A7: =RETURN()
The function ENTER.DATA() turns on Data Entry mode and allows you to
enter data into unlocked cells. This function does not allow you to
enter data into locked cells on the worksheet.
DataEntryMode
163435 VBA: Programming Resources for Visual Basic for Applications
Additional query words: 4.0a 4.00a 5.0 5.0a 5.00a 5.0c 5.00c 7.00a 8.00 XL97 freeze XL
Keywords: kbdtacode kbhowto kbprogramming KB101567