使用Application.OnKey禁用键盘键

时间:2016-08-28 19:46:11

标签: excel-vba excel-2016 vba excel

问题1: 使用Application.Onkey无法禁用这些键盘键时,键是{} []建议?

1 个答案:

答案 0 :(得分:0)

请尝试以下操作以禁用密钥ERR_INCOMPLETE_CHUNKED_ENCODING

{}[]

要启用这些条目,请添加以下内容:

' Macro to turn off keyboard entry.

  Sub KeyboardOff() 
     Application.OnKey "{[}", ""
     Application.OnKey "+{{}", ""
     Application.OnKey "+{}}", ""
     Application.OnKey "{]}", ""
 End Sub