J
J2Spank
Hoping that someone out there can help me with this...
I have a form with about 250 labels on it. Each label is named in such a
way that I can make them visible/invisible as needed.
Here's what I'd like to do. When a visible label is clicked, it will open
up another form. However, I'd rather not write On_Click event procedures for
250 labels!
I was hoping to use the "Handles" extension on a subroutine, similar to VB,
but it doesn't seem to exist in VBA....or does it?
I also tried adding an On_Click event to the form's detail that would
capture the mouse's XY coordinates, and calculate what label the pointer was
floating over. However, since the labels are in front of the form detail,
and they have empty On_Click events, the sub won't run.
I'm thinking some sort of transparent image map that would reside in front
of the labels would work great. Is there such a thing?
Any help would make my day.
Thanks!
I have a form with about 250 labels on it. Each label is named in such a
way that I can make them visible/invisible as needed.
Here's what I'd like to do. When a visible label is clicked, it will open
up another form. However, I'd rather not write On_Click event procedures for
250 labels!
I was hoping to use the "Handles" extension on a subroutine, similar to VB,
but it doesn't seem to exist in VBA....or does it?
I also tried adding an On_Click event to the form's detail that would
capture the mouse's XY coordinates, and calculate what label the pointer was
floating over. However, since the labels are in front of the form detail,
and they have empty On_Click events, the sub won't run.
I'm thinking some sort of transparent image map that would reside in front
of the labels would work great. Is there such a thing?
Any help would make my day.
Thanks!