VBA - Option Button

  • Thread starter Thread starter ajliaks
  • Start date Start date
A

ajliaks

Hi

I have option buttons called "one" and "two"

How can I made option button "one" be preselected by defect?

(when I run the macro, obtion button "one" must appear selected.

Thanks
 
MacroName()
OptionButton1.Value = True
'more code,...
End Sub

'If the option button is in a form, use:

Private Sub UserForm_Initialize()
OptionButton1.Value = True
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top