View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Command button "selected"

Disable it within the assigned macro

ActiveSheet.Buttons(Application.Caller).Enabled = False


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"pgarcia" wrote in message
...
When you click on a command button, it seem to be selected always and when
a
user does not know that and they click the enter button, it runs the macro
again. How do de-select the command button once it's clicked?

Thanks