What I want to do is to create a dynamic button array and use WithEvents for the events for the array. How can one do this?

What I have Tried is

Dim WithEvents cmdButtons as CommandButton


This works as it should for one button but


Dim WithEvents cmdButtons() as CommandButton


is a VB no-no...

I am using Controls.Add to create the buttons and what I want is the events sub to handle the button array, like such:

Private Sub cmdButtoms(Index)

How to?