I want to be able to add controls to a VBA worksheet at runtime and then be able to handle them with events. How do I do this?
Specifically, my application automatically queries a constantly changing Access database every five minutes. The records from the query are then displayed on an Excel worksheet. There is one row for each record. What I need to do is add a couple of command buttons and a label to each row/record. If the user clicks on one of the buttons or labels added at runtime, I need to be able to respond to this with code.
Thanks very much in advance for any help or advice that you can provide!!
Specifically, my application automatically queries a constantly changing Access database every five minutes. The records from the query are then displayed on an Excel worksheet. There is one row for each record. What I need to do is add a couple of command buttons and a label to each row/record. If the user clicks on one of the buttons or labels added at runtime, I need to be able to respond to this with code.
Thanks very much in advance for any help or advice that you can provide!!