Quiz in Powerpoint

R

Rene

Hi experts ..... Shyam Pillai in particular!

I've been playing with the VBA script for creating a quiz in
Powerpoint found at:

http://www.mvps.org/skp/ppt00031.htm

I must admit I am a VBA novice, but I'm having difficulties modifiying
the code to accept new questions.


The part in question is:


Choices(0, 0) = " Very Sleepy"
Choices(0, 1) = " Indecisive"
Choices(0, 2) = " Very Vain"

Choices(1, 0) = " Excessive Pride"
Choices(1, 1) = " Trusted Friend"
Choices(1, 2) = " Secret"

Choices(2, 0) = " Pele"
Choices(2, 1) = " Mohammed Ali"
Choices(2, 2) = " George Foreman"
' Store the index values of the correct answers
Ans(0) = 3
Ans(1) = 2
Ans(2) = 1
' Set the variable to the 1st question
QNo = 1


Now, I assume that the part Ans (0) =3 is telling the program, which
answer is correct. How does the number "3" correspond to the choices?
Is the Choise (0,2) equal to Answer "3"?

I've tried playing with this but have had no luck so far. Especially
the text box which should display the correct answers doesn't do what
I want it to, when I switch the numbers behind Ans (0) etc.

Could you give me a short description of how the code works?

One more generel question: is there a reason you chose to use
different unicode bullets rather than choice boxes for displaying the
selected answer?

I would really appreciate any help!

Thanks in advance everyone!

Rene
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top