counting macro occurence in vba

D

djphillips1408

Can anyone help as VBA is something I have never dabbled with. Idea is
to set up a multiple choice quiz in PowerPoint that fires back a msgbox

saying right or wrong and then advances to next slide, so that's no
problem using

Sub Wrong()
MsgBox ("Sorry, that's not right.")
SlideShowWindows(1).View.Next
End Sub


same principle to display right().....


Question is how do I create a macro that would count how many times sub

wrong() or sub right() has run over the course of the slide show and
then display the answer by clicking a button to run this "count macro"
on the last slide?


Just seems an easy way to introduce my students to a little more
beyond basic slideshows...

David Phillips
Kings School, Canterbury, Kent
 
D

David M. Marcovitz

David,

I have lots of examples just like this on my Web site. Go to:

http://www.PowerfulPowerPoint.com/

Click on "Examples by Chapter" and look in Chapter 7 for many examples of
multiple-choice and short-answer quizzes.

The thing you are describing is Example 7.2.

--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/

(e-mail address removed) wrote in @y41g2000cwy.googlegroups.com:
 
G

Guest

You need the book "powerful powerpoint for educators" which is all about vba
in education.

Expensive book in the UK but I just happen to have a spare copy for sale
(brand new and 75% of amazons price!)! Drop me an email if you are interested
David Marcovitz's site is here:
http://www.loyola.edu/edudept/PowerfulPowerPoint/Chapter5Examples.html
--
-----
Did that answer the question / help?
_____________________________
John Wilson
Microsoft Certified Office Specialist
http://www.technologytrish.co.uk/ppttipshome.html
 

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