View Single Post
 
Old 03-04-2016, 11:15 AM
VisionAvenger VisionAvenger is offline Windows 10 Office 2013
Novice
 
Join Date: Mar 2016
Posts: 16
VisionAvenger is on a distinguished road
Question Interactive Quiz with Scores at the end?

I found a site that gave some ideas for using PowerPoint for an interactive quiz, ie, when someone clicks a button, it counts if they got the question right and then gives a score at the end.
Using this code . . .
Code:
Option Explicit
Public Tally As Integer
Sub InitializeScore()
Tally = 0
End Sub
Sub AddToTally(Points As Integer)
Tally = Tally + Points
End Sub
Function ShowTally()
MsgBox "Your final score is " & CStr(Tally)
End Function
This is good, but I can't connect an Action button to the Function (only a Sub), so I'm not sure if it's working.

Two questions, please:
1) How do Initialize the score without requiring someone click the button, ie, it should initialize when the Slideshow begins.

2) How do I show the person the score at the end, seeing as I can't attach it to an Action, eg, "Click here to see your score"?

Thanks in advance, and if you have any suggestions for improving the above, I would naturally be happy to hear your thoughts!

Cheers

Brian
Reply With Quote