Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Event Code

Status
Not open for further replies.

robg37

Programmer
May 30, 2001
2
US
I have a form with a command button that has VBA code run when you click it. When you click this button, it creates a new form and adds controls to the form. Now I need a way to specify VBA code that runs when various control's events occur on the new form. Any ideas on how to write VBA code that creates VBA code in another module?

Thanks!

Rob G.
 
There was a thread on the topic recently. Use the search capability to find it.
MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
See the topic "Edit functions 'on the fly'" yesterday, but it probably won't help a lot
 
I found the answer! Look at the Microsoft Knowledge Base article Q187318. It talks about how to programmatically create and modify code.

Happy coding!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top