Application.CapsLock Property

Word Developer Reference

True if the CAPS LOCK key is turned on. Read-only Boolean.

Syntax

expression.CapsLock

expression   A variable that represents an Application object.

Example

This example retrieves the current state of the CAPS LOCK key.

Visual Basic for Applications
  Dim blnCapsLock As Boolean

blnCapsLock = Application.CapsLock

See Also