Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Lydia Hughes   on Oct 03 In MS Office Category.

  
Question Answered By: Paulette Matthews   on Oct 03

However, there is a slight problem with it. You must name your
controls with a name beginning by "OptionButton" or "TextBox", etc...
If you change your naming convention let's say "Opt1" or "txtName"
for example, your code  is not going to work.
So, I would advise you to use the following:

For Each ctl In UserForm1.Controls
If TypeName(ctl) = "OptionButton" Then
ctl.Value = false
End If
Next ctl

Share: 

 

This Question has 7 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on All Frames and Optionbuttons in a UserForm Or get search suggestion and latest updates.


Tagged: