如果为 True,则系统的鼠标有效。Boolean 类型,只读。
expression.MouseAvailable
expression 必需。该表达式返回一个 Application 对象。
本示例显示以条消息,表明没有有效的鼠标。
If Application.MouseAvailable = False Then
Msgbox "Make sure your mouse is plugged in."
Else
Msgbox "Mouse is available"
End If