This documentation is archived and is not being maintained.

XlMouseButton Enumeration 

Specifies which mouse button was pressed.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in

Dim xlMouseButton1 As XlMouseButton = XlMouseButton.xlNoButton

public enum class XlMouseButton
public enum XlMouseButton
public enum XlMouseButton

Member nameDescription
xlNoButtonNo button was pressed.
xlPrimaryButtonThe primary button (normally the left mouse button) was pressed.
xlSecondaryButtonThe secondary button (normally the right mouse button) was pressed.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms