Hi everyone,
I have actually been successful in creating controls
onto forms on the fly. What I am wondering is if it
is possible to generate VBA code for a particular control
at the same time.
For example, a combobox is created with all the properties
added in code. Then, an event procedure (ie. ON CLICK) is
subsequently generated for that control via code.
I have been able to create a blank form with VBA included
for non-existent controls that can later be pointed to. But,
I'm wondering if it can be done programatically from scratch.
Thanks for any suggestions. SAM
I have actually been successful in creating controls
onto forms on the fly. What I am wondering is if it
is possible to generate VBA code for a particular control
at the same time.
For example, a combobox is created with all the properties
added in code. Then, an event procedure (ie. ON CLICK) is
subsequently generated for that control via code.
I have been able to create a blank form with VBA included
for non-existent controls that can later be pointed to. But,
I'm wondering if it can be done programatically from scratch.
Thanks for any suggestions. SAM
Comment