PC Review


Reply
Thread Tools Rate Thread

Creating a Dynamic Questionaire

 
 
=?Utf-8?B?amI=?=
Guest
Posts: n/a
 
      23rd Mar 2007
Hi there,

I'm trying to create a dynamic questionaire on an excel spreadsheet. I'm
wondering:

1) Is it possible to create a form with questions and:
a) radio or check boxes, and b) text boxes for user input.

2) If so, how do I get information in and out of these check boxes,

3) Using a Macro to decide which form to go to next.


 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxhdGhhbQ==?=
Guest
Posts: n/a
 
      24th Mar 2007
When you say "create a form" do you mean to have the controls (radio buttons,
checkboxes, text boxes) actually on an Excel worksheet, or are you thinking
of a UserForm? If you don't know what I'm talking about when I say UserForm,
then the answer is probably "worksheet".

The answer is yes in both cases, but which method you're using determines
how the values from the controls are obtained and processed.

If you plan on setting this all up directly on a worksheet, the way I prefer
to do it is to use the controls from the [Forms] toolbar. To get to that
toolbar, display it from the Excel menu: [View] | [Toolbars] | "Forms"
You just click on a control, and then click on the sheet to put one there
and format it up. One of the properties of the Radio buttons and Checkboxes
(on their [Control] tab in the properties dialog for each) is what cell they
are associated with. When you make a change to the control, the results are
reflected in that cell. By pushing a value to the related cell you can
change the value of the control.

You can set your radio/check boxes up that way, then for text entries, just
set up to have the users type directly into a cell on the sheet.

Handling controls on Userforms is done differently.

As for having a macro decide what to do next, given some change in one of
the cells or a click of a button - yes that can be done via code also. Easy
way is to have a command button that when clicked takes you to the next step.
It could even make a decision based on some value in one of the responses
given. Another way to just suddenly jump to another location in the workbook
would be to use the worksheet's _Change() event handler to detect a change in
a particular cell and take action based on the results of evaluating the
change.

"jb" wrote:

> Hi there,
>
> I'm trying to create a dynamic questionaire on an excel spreadsheet. I'm
> wondering:
>
> 1) Is it possible to create a form with questions and:
> a) radio or check boxes, and b) text boxes for user input.
>
> 2) If so, how do I get information in and out of these check boxes,
>
> 3) Using a Macro to decide which form to go to next.
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a Dynamic 6x4 PDF File FerrisUML Microsoft C# .NET 0 4th Mar 2008 07:20 PM
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function rajansood@hotmail.com Microsoft Excel Programming 0 9th Oct 2007 05:22 PM
Creating a questionaire - checkbox problems =?Utf-8?B?c3R1bWFj?= Microsoft Word Document Management 1 29th Mar 2007 01:21 PM
Creating a (kind of) questionaire? =?Utf-8?B?TGlhbQ==?= Microsoft Powerpoint 2 21st Nov 2005 08:37 AM
creating a questionaire in access =?Utf-8?B?U3dlZGU=?= Microsoft Access Forms 1 1st Feb 2005 11:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:42 PM.