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.
Public Function IsMouseAvaialbe() As Boolean If Application.MouseAvailable = True Then IsMouseAvaialbe = True Else IsMouseAvaialbe = False End If End Function
Next >> CLEAN Function in Excel with example