MouseAvailable Property Example

This example displays a message if there's not a mouse available.

If Application.MouseAvailable = False Then
    Msgbox "Make sure your mouse is plugged in."
Else
    Msgbox "Mouse is available"
End If