View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Sharad Naik Sharad Naik is offline
external usenet poster
 
Posts: 212
Default simulating click events

Just double click on the Label.
It will take you to that labels Click event code.
Write your code there.
Don't forget to come out of design mode to try your code,
cause the event is not fired if you are in design mode.

Sharad

"ben" wrote in message
...
simple question

Is there a way to simulate the clicking of a control through vba?

eg..
Sheet1 contains a label named 'l12' and will change colors when clicked,
is there a way to cimulate actually clicking it so that the code for its
event is triggered?