Application.ConstrainNumeric property (Excel)

True if handwriting recognition is limited to numbers and punctuation only. Read/write Boolean.

Syntax

expression.ConstrainNumeric

expression A variable that represents an Application object.

Remarks

This property is available only if you are using Microsoft Windows for Pen Computing. If you try to set this property under any other operating system, an error occurs.

Example

This example limits handwriting recognition to numbers and punctuation only if Microsoft Windows for Pen Computing is running.

If Application.WindowsForPens Then 
 Application.ConstrainNumeric = True 
End If

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.