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

Common vba code for multiple Buttons 1

Status
Not open for further replies.

jpl458

Technical User
Sep 30, 2009
337
US
Have a from that ras for text boxes and 40 lables. I want to create a double click event for each of the 40 lables, that will update a table with 40 rows. Is there a way to have one piece fo code that can be used by each of the 40 double click events, (which is a snap in 360/370 assembler "BAL R5,mylable"), or do I have to copy and change each of the forty when I creat then and change all 40 if a change is required? I would need to pass something identifying the lable. Would a function do the trick, I am just thinking.

jpl458
 
You may write a generic function dealing with the Screen.ActiveControl.Caption property

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top