Using events in VBA

From Ribbon Commander Documentation
Revision as of 18:00, 17 March 2013 by Rxdff15551 bb53 (Talk | contribs) (Subscribing to control events)

Jump to: navigation, search

Prerequisites

We recommend you go though Creating an rxCustomUI object with local dispatch scope in VBA before going into this example.

Introduction

All Dynamic RibbonX controls that model UI elements with delegates support VBA events. Local dispatch scope is most appropriate for use in VBA classes.

Subscribing to control events

  • Add a new class to your VBA project and name it clsEventsDemoUI
  • Enter the following code to the class module