Syntax

expression.ConstrainNumeric

expression A variable that represents an Application object.

Remarks

This property is available only if you're 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.

Visual Basic for Applications
If Application.WindowsForPens Then Application.ConstrainNumeric = True End If
constrain constrain numeric Constrain Numeric Property ConstrainNumeric ConstrainNumeric Property Number only data entry? Recognize only handwritten numbers or punctuation? Restrict input to numbers on pen based system?

See also: