Powerful PowerPoint Book Cover
Home
Buy the Book
Examples by Chapter
Examples from Real People
More Tricks
Errata
About the Author
Contact the Author
Other Resources
Powerful PowerPoint for Educators:
          Using Visual Basic for Applications to Make PowerPoint Interactive
          by David M. Marcovitz

Examples by Chapter
Chapter 8

Examples by Chapter Home | Chapter 5 | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10

Click on a an example to download it. These examples will not run over the Web, they will not run with the PowerPoint Viewer, they will not run while compressed, and they will not run with macros disabled. Be sure your macro security is set to medium or low, and be sure to unzip or unstuff the files before running them.

Description Zip Version Stuffit Version Text Version
All examples from Chapter 8 Chapter8.zip
(813KB)
Chapter8.sit
(731KB)
Several examples use If statement from pages 118-120 Example08-01.zip
(12KB)
Example08-01.ppt.sit
(12KB)
Example08-01.txt
(2KB)
Two examples asking "How Many Planets" showing While loops from page 121 Example08-02.zip
(9KB)
Example08-02.ppt.sit
(9KB)
Example08-02.txt
(<1KB)
Example that uses a parameter to supply the message for how well or poorly you did on the quiz, from page 125 Example08-03.zip
(11KB)
Example08-03.ppt.sit
(12KB)
Example08-03.txt
(1KB)
This example uses a timed function to say "Hello," pause for 5 seconds, and say "Goodbye" from page 126 Example08-04.zip
(10KB)
Example08-04.ppt.sit
(11KB)
Example08-04.txt
(<1KB)
This example combines parameters with timing to automatically advance through the slides at the speed (fast, medium, or slow) input by the user, from page 127 Example08-05.zip
(11KB)
Example08-05.ppt.sit
(11KB)
Example08-05.txt
(<1KB)
This example shows how to use VBA to automatically save or to make sure PowerPoint doesn't ask if you want to save even if changes have been made, from page 128 (this example is correct, but there there is a mistake in the MakeNotDirty procedure on page 128 in the book) Example08-06.zip
(10KB)
Example08-06.ppt.sit
(11KB)
Example08-06.txt
(<1KB)
This example includes procedures for finding out the name of an object or a slide and for setting the name of an object or a slide, from pages 130-133 (these procedures must be run in Edit or Normal View, not Slide Show View) Example08-07.zip
(14KB)
Example08-07.ppt.sit
(14KB)
Example08-07.txt
(3KB)
This is a simple multiple-choice quiz that allows each question to be answered over and over again, but only counts the first try; this example works just like Example 7-4, except it uses arrays so that no changes to the VBA are necessary when adding new questions, from pages 134-138 Example08-08.zip
(12KB)
Example08-08.ppt.sit
(12KB)
Example08-08.txt
(1KB)
This is just like the example above, except it includes a short-answer qeustion, so the only VBA that needs to be changed is a new Question procedure for each short-answer question, from page 138 Example08-09.zip
(13KB)
Example08-09.ppt.sit
(13KB)
Example08-09.txt
(2KB)
This example tells you what text is on the button, from page 138 Example08-10.zip
(8KB)
Example08-10.ppt.sit
(8KB)
Example08-10.txt
(<1KB)
This is a simple multiple-choice and short-answer quiz that creates a printable page with all the answers chosen; it is just like Example 7-9, except it uses arrays to keep track of answers so the only VBA that needs to be changed is for a short-answer question and only one try is allowed for each question, from pages 139-142 Example08-11.zip
(16KB)
Example08-11.ppt.sit
(16KB)
Example08-11.txt
(5KB)
This is just like the previous example, except that the student answers over and over again until the question is answered correctly and only the first answer is recorded (note changes in RightAnswerButton and WrongAnswerButton from what is in the book), from pages 139-142 Example08-12.zip
(17KB)
Example08-12.ppt.sit
(18KB)
Example08-12.txt
(5KB)
This example generates random addition problems with no scorekeeping, from page 144 Example08-13.zip
(9KB)
Example08-13.ppt.sit
(9KB)
Example08-13.txt
(<1KB)
This example generates random addition problems keeps score, from page 145 Example08-14.zip
(10KB)
Example08-14.ppt.sit
(11KB)
Example08-14.txt
(1KB)
This example generates random addition problems that are repeated until answered correctly and keeps score only counting the first try, from page 146 Example08-15.zip
(11KB)
Example08-15.ppt.sit
(11KB)
Example08-15.txt
(1KB)
This example was written for my daughter when she was learning to read; it has a series of reading passages and multiple-choice questions, and it randomly picks five passages to show from all the passages in the presentation, from page 147 Example08-16.zip
(320KB)
Example08-16.ppt.sit
(276KB)
Example08-16.txt
(1KB)
This is just like the previous example except that it first asks how many questions you want, and it keeps score, from pages 149-150 Example08-17.zip
(321KB)
Example08-17.ppt.sit
(277KB)
Example08-17.txt
(2KB)

Examples by Chapter Home | Chapter 5 | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10


This page was created by Dr. David M. Marcovitz.
Last updated: February 9, 2005