Question
I completed the first part I need help with the second part.. its a VBA code. Show useform and leave copy code 1. Create a
I completed the first part I need help with the second part.. its a VBA code. Show useform and leave copy code
1. Create a form that contains the usual OK and Cancel buttons. It also should con- tain two sets of option buttons, each set placed inside a frame. The captions on the first set should be Baseball, Basketball, and Football. The captions on the second set should be Watch on TV and Go to games. Then write appropriate code so that when the program runs, the user sees the form. If the user makes a couple of choices and clicks OK, he should see a message like, Your favorite sport is basketball, and you usually watch on TV. If the user clicks Cancel or the X but- ton, the message Sorry you dont want to play. should appear.
2. Repeat the previous exercise, but now make the controls checkboxes, not option buttons. Change the message in case the user clicks OK to something appropriate, such as, "You like baseball and basketball, and you like to watch on TV and go to games." The message should be appropriate, regardless of which checkboxes are checked (including none being checked)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started