View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tom Ogilvy Tom Ogilvy is offline
external usenet poster
 
Posts: 27,285
Default can I make a general object event procedure?

Not generally. You can make an create a class and assign that class to
multiple objects, then define you events in that class.

See John Walkenbach's site for an example.
http://j-walk.com/ss/excel/tips/tip44.htm
Handle Multiple UserForm Buttons With One Subroutine

Written for a userform and commandbuttons, the approach will work for any
activeX control and can be for a userform or a worksheet.

--
Regards,
Tom Ogilvy


"Wazooli" wrote in message
...
Is there a way to make event procedures generic? For example, if I create
and populate a list or combo box via code, can I pass the address of the
created box to a _change() procedure?

wazooli