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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Event procedure written by VBA not recognized by Form Controls

Status
Not open for further replies.

CautionMP

Programmer
Dec 11, 2001
1,516
US
I have a form that renders a 12 month calendar, it has 504 controls that need an On_DblClick event. All 504 controls were created with a function, I also wrote a function to build the On_DblClick event for each control, now here is my dilemma. The control's on the form do not recognize that they have an event procedure for the On_DblClick event unless I go to the property page for each control and set the Event for DblClick to [Event Procedure]. This would not be big problem except that I have 504 controls, any ideas on how I can remedy this with code?
 
Nevermind, just stumbled across the answer. Form.Control.OnDblClick = "[Event Procedure]"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top