CapsLock Property

Microsoft Word Visual Basic

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

Example

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

Dim blnCapsLock As Boolean

blnCapsLock
= Application.CapsLock