View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Fernando Fernando is offline
external usenet poster
 
Posts: 21
Default Events with diniamically added controls

Hi,

I have an application in VBA were I dinamically add several controls to a
form. Im creating arrays of variables of type Control to access the added
controls, for ex:

Set ctrl_graph(i) = page_id.Controls.Add(add_chkbox_string, "ctrl_graph" & i)

Now I need to add events to this controls, but I have encountered that
'WithEvents' doesnt work with arrays. How can I add events to this controls?

Greetings
Fernando