CapsLock Property

Microsoft Word Visual Basic

CapsLock Property

       

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