Application.WindowsForPens property (Excel)

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

Syntax

expression.WindowsForPens

expression A variable that represents an Application object.

Example

This example shows how to limit handwriting recognition to numbers and punctuation only if 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.