Application.WindowsForPens Property (Excel)

True if the computer is running under Microsoft Windows for Pen Computing. Read-only Boolean.

expression .WindowsForPens

expression A variable that represents an Application object.

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

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