Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default VBA Help with Form

I’m advanced at formulas and functions, charts, etc, but NOT very knowledgeable on VBA, so I would greatly appreciate your help on a form (questionnaire) with radio buttons.

The form/questionnaire has 17 questions, with “Yes” and “No” radio buttons, but for the sake of brevity I’ll ask for help for 3 questions, and then just repeat the code (…adjusting for the remaining buttons).

Layout:
3 questions, listed in cells B3:B5

Each question has a Yes radio button and a No radio button at the end of it. One or the other may be selected (not both)

The combination of “Yes” and “No” selections for the questions determines which Solution is recommended.

On the bottom of the form is an “Evaluate” button that the user selects to return the recommended Solution (text string), in cell B6.
So, if Question 1 is “Yes”, Question 2 is “No”, and Question 3 is “Yes”, then “Solution One” is recommended.
If Question 1 is “No”, Question 2 is “Yes”, and Question 3 is “No”, then “Solution Two” is recommended.
If Question 1 is "Yes", Question 2 is "Yes" and Question 3 is "Yes", then "Solution Three" is recommended.
And so on...

If you could also include code that, if selections other than those listed in the code are selected, then “No Solution Found” is returned.

A macro to clear the form would also be appreciated.

Thanks a bunch for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default VBA Help with Form

I assume that you mean you have designed a worksheet to be used as a
questionaire!

I recommend using a DV dropdown for user choices with 'helper' columns
to render result combinations based on the user's selection. This will
eliminate the need for using controls (and their associated overhead),
simply the process, and provide the same (or better) quality experience
for the user!<IMO

The helper cols (and/or rows) can be hidden so your questionaire has a
cleaner look. Since you are advanced at using formulas/functions then I
expect you will have no problem designing a calc mechanism for which
'solution' to return based on how your helper cells evaluate their
respective DV dropdown selection.<g

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
Call user form from ThisWorkbook; close file if form closed XP Excel Programming 2 July 20th 07 07:04 PM
Pass variable from form to form to form headly Excel Programming 1 May 31st 06 02:50 AM
Strange issue freezing parent form when unloading a child form Stefano Gatto Excel Programming 1 November 11th 05 04:42 PM
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? Daniel[_14_] Excel Programming 1 August 29th 04 01:20 PM


All times are GMT +1. The time now is 11:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"