View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
pgarcia pgarcia is offline
external usenet poster
 
Posts: 304
Default Command button "selected"

Oh, the command button takes you to another tab/sheet, so that did not work.

"Bob Phillips" wrote:

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