I have a user form in which I am using a couple of option buttons. I am trying to make one of the the buttons as a default if none is selected. How can I go about doing it? Can anybody help me with the code?
I have a user form in which I am using a couple of option buttons. I am trying to make one of the the buttons as a default if none is selected. How can I go about doing it? Can anybody help me with the code?
Last edited by peedarp1985; 05-13-2010 at 02:32 AM.
Hello peedarp1985,
Say you have three option buttons named "OptionButton1", "OptionButton2", and "OptionButton3". When the User Form is displayed none will be selected. If you want "OptionButton1" to be set by default then...
![]()
Private Sub UserForm_Activate() OptionButton1.Value = True End Sub
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Thank you very much that worked.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks