Mouse Available Property in VBA (Visual Basic for Applications) example

Mouse Available Property in VBA (Visual Basic for Applications) example

MouseAvailable

Property let the user know if a mouse is attached to it or not. Mouse Available is a boolean property which returns True or False and its a read-only property. Application object exposes MouseAvailable property.

Code example

Public Function IsMouseAvaialbe() As Boolean
    If Application.MouseAvailable = True Then
        IsMouseAvaialbe = True
    Else
        IsMouseAvaialbe = False
    End If
End Function

Output

True

Next >> CLEAN Function in Excel with example

Leave a Reply

Your email address will not be published.