XlMouseButton Enumeration
TOC
Collapse the table of content
Expand the table of content

XlMouseButton Enumeration (Excel)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Specifies which mouse button was pressed.

Name

Value

Description

xlNoButton

0

No button was pressed.

xlPrimaryButton

1

The primary button (normally the left mouse button) was pressed.

xlSecondaryButton

2

The secondary button (normally the right mouse button) was pressed.

Show:
© 2016 Microsoft