View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Halim Halim is offline
external usenet poster
 
Posts: 182
Default Disable Focus on Command Buttons

Hi John,

Set the commandbutton with Tabstop = false
like :

Private Sub UserForm_Initialize()
CommandButton1.TabStop = False
End Sub


--

Regards,

Halim


"John Michl" wrote:

I have a simple form with two command buttons. The user votes for one
of two options by clicking the appropriate button. Currently, when the
form opens it appears that the first button has focus. I don't want
either button to have focus to avoid "leading" the user to one button
over the other.

How can I disable focus on the form?

Thanks.

- John