Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Boell Fischer   on Oct 24 In MS Office Category.

  
Question Answered By: Hadil Khan   on Oct 24

You need something like this

Sub LaunchBasedOnControlValue
If UserForm1.OptionButton1.Value = True Then MacroOne
If UserForm1.OptionButton2.Value = True Then MacroTwo
End Sub

This macro  should be triggered by a command btton on your UserForm
(Replace UserForm1 with your form's name) and MacroOne, MacroTwo sould
be replaced with the names of the subs you want to run for each radio
button.

Share: 

 
 


Tagged: