Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 3
Default Create survey

Hello everyone,


I searched the Forum for a specific kind of survey, but I could not really find the perfect answer (yet ;) )

I would like to create a survey with 7 questions and a tick box with 4 answer possibilities (which are weighted from 0 to 3) and calculate the average outcome.
I found this one: http://www.contextures.com/xlForm01.html
which mainly does what I want (just weighting only from 1, but I think with some mesing arounf in the final calculation this wil be fine)

Now I would like to
a) create something like a "pop-up" window with the final score and some text (explanation of the score) and
b) save the outcome and a participant number in an excel file and
c) "reset" the survey so that the next participant can do it

Thanks a lot!
  #2   Report Post  
Junior Member
 
Posts: 3
Default

Ok, I am getting closer....

is there any possibility to merge these 2 macros in 1 file?

The survey: http://www.contextures.com/xlForm01.html

and an evaluation sheet:
http://www.contextures.com/xlForm02.html
  #3   Report Post  
Junior Member
 
Posts: 3
Default

Ok, I am getting there...

Is there any way to merge these two macros in one file?

This survey
http://www.contextures.com/xlForm01.html

and this evaluation tool
http://www.contextures.com/xlForm02.html
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Create survey

Hi KeiSan,

The code below should do the trick (after you customize it for your needs). Once your userform calculates a score, have the form call this procedure and feed the score to it. The procedure will display a customized message and then save data that you specify to a location in your workbook. Finally, unloading the form will clear the entries and let the next user complete it from scratch. Hope this helps.

-Ben

Sub ReportResults(dScore As Double)
'Userform will calculate score and then call this procedure
'to generate a messagebox with your customized message
'
'Message will vary based upon score ranges
'Customize your ranges and messages below

Select Case dScore

Case Is <= 5
MsgBox "Your score is " & Format(dScore, "0.00") & "." & vbCr & vbCr & _
"Here is your explanation.", , "Results"

Case Is <= 10
MsgBox "Your score is " & Format(dScore, "0.00") & "." & vbCr & vbCr & _
"Here is your explanation.", , "Results"

Case Else
MsgBox "Your score is " & Format(dScore, "0.00") & "." & vbCr & vbCr & _
"Here is your explanation.", , "Results"

End Select

'Now, the code will save data to a place in your spreadsheet
'In this example, it will find the next available row in column A
'on Sheet1 and plug in the username, score and date/time
'
'You may customize the tracking information if you want
'to track something different
With Sheet1.Range("A50000").End(xlUp)
.Offset(1, 0).Value = Environ("Username")
.Offset(1, 1).Value = dScore
.Offset(1, 2).Value = Now()
End With

'Optional: uncomment below to unload the userform
'Unload UserForm1
End Sub
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
How do I create a survey using excel? RG New Users to Excel 1 August 22nd 08 08:18 AM
How do I create a Graphical Report from Survey responses in Excel Jon Peltier Excel Programming 0 January 18th 08 12:15 AM
How do I create a Graphical Report from Survey responses in Excel ajc Excel Programming 0 January 17th 08 11:24 PM
How do I create survey results into an Excel spreadsheet? landie Setting up and Configuration of Excel 0 October 25th 06 06:30 PM
How do i create option Boxes for a survey on excel?? Option Boxes Excel Discussion (Misc queries) 1 September 19th 05 10:00 PM


All times are GMT +1. The time now is 03:42 AM.

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

About Us

"It's about Microsoft Excel"