WithEvents <keyword>

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.

The WithEvents keyword is used in these contexts:

Dim Statement

Private Statement

Public Statement

Show: