Access VBA: many CommandButton execute same code

后端 未结 2 1898
清歌不尽
清歌不尽 2021-01-27 19:58

I have a form with many buttons. Most of these buttons have a .tag field where I identify their function (numeric field)

Every button, on click, should execute same code

2条回答
  •  独厮守ぢ
    2021-01-27 20:40

    Yes, use WithEvents. An example can be found here:

    Create Windows Phone Colour Palette and Selector using WithEvents

提交回复
热议问题