如果手写识别程序只能识别数字和标点符号,则该值为 True。Boolean 类型,可读写。
注意 该属性仅在使用 Microsoft Windows for Pen Computing 时可用。如果试图在其他操作系统中对该属性进行设置将产生错误。
本示例监测是否运行在 Microsoft Windows for Pen Computing 上,如果是,则限定手写识别程序仅识别数字和标点符号。
If Application.WindowsForPens Then
Application.ConstrainNumeric = True
End If