VB to print questions and answers on separate slide?

G

Guest

Good afternoon....

I have created an interactive quiz that prints the user's results on a
separate slide. The quiz is set up to use random questions (one Question per
slide).

Is there a way to have the questions & answers (the user selected) dislayed
on the printable page? Im not sure how to incorporate them onto the
printable page because the quiz is set up to use random slides.

Any suggestions?

Thanks in advance...

Nikki
 
B

Bill Dilworth

This could easily be incorporated into the VBA code you are using to
generate the random slide jump (as long as the code is being run on the user
end and not just on the presentation creation end).

Just create 2 arrays Answer(100) and Question(100) and a simple integer
pointer, QuestionNumber. Then populate the arrays as the presentation quiz
runs. I'm assuming 100 questions here, but you can make this as large or as
small as required.

When the user clicks on the 'Did I get it right?' button, the VBA code can
place the text from the question text box into the array variable
Question(QuestionNumber) and their answer goes to Answer(QuestionNumber) and
then you increase the pointer by one. Then you code can jump the
presentation to the next random slide and repeat.

At the last question, you can create a simple text file or even a printout
via VBA.

If you need a more detailed how-to, we'll need to see how you are
generating the randomness of the slides (i.e. your code). If you are not
comfortable posting it to the newsgroup, then you can email it to the
address in my signature. I'll take a look and make some suggestions for how
to incorporate this.


--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
D

David M. Marcovitz

Hi Nikki. By the use of the term "printable page," I'm guessing that you
are using the examples in my book (or at least you started with them).
Are the questions multiple-choice or short-answer? It's always easy to
get the answer from a multiple-choice question by getting the text from
the button.

However, another question is how are you randomly selecting the
questions? If you have a way to randomly jump to questions, it shouldn't
matter how you got there as to what can go on the printable page. That
is, once you are on a slide, that slide's question and answer should get
added to the printable page. This should work regardless of whether you
used a RandomNext procedure or just jumped there from the previous slide.

If, on the other hand, the questions are randomly generated, this would
be a bit harder but still doable.

If this doesn't make sense, drop some code here, and we'll look at it.

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 

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