Powerful PowerPoint for Educators

Using Visual Basic for Application to Make PowerPoint Interactive

by David M. Marcovitz

Examples by Chapter
Chapter 9

Examples by Chapter Home | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10 | Chapter 11 | Chapter 12

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.

# Pages from Book Description Zip Version Text Version
9 155-194 All examples from Chapter 9 Chapter9.zip
(1.8MB)
 
9.1 157 Demonstration of If - ElseIf with a procedure that converts a number grade to a letter grade. Example09-01.zip
(44KB)
Example09-01.txt
(1KB)
9.2 159-162 Looping - Three examples of While loops using the HowManyPlanets procedure. The first just loops until the right answer is enter. The second and third example show different ways of setting up the loop to stop after three tries. Example09-02.zip
(61KB)
Example09-02.txt
(1KB)
9.3 165-166 Parameters - Simple Quiz (like Example 8.1) with a Feedback procedure that calls Doing (with a parameter) to give different feedback based on the score. This is a simple demonstration of the use of parameters in procedures that you write yourself. Example09-03.zip
(57KB)
Example09-03.txt
(1KB)
9.4 166-167 Timed Functions - Simple Wait procedure that pauses for 5 seconds. Example09-04.zip
(41KB)
Example09-04.txt
(1KB)
9.5 167-169 More Timing - This allows you to pick your reading speed and then loops through a presentation, moving to the next slide at different speeds based on what speed you chose. Example09-05.zip
(47KB)
Example09-05.txt
(1KB)
9.6 170-172 Saving and Quitting - Different procedures to save a presentation, quit a presentation, and quit a presentation without saving or asking to save. Example09-06.zip
(37KB)
Example09-06.txt
(1KB)
9.7 172-175 Adding PowerPoint Objects - Procedure to add a rectangle to a slide. Example09-09.zip
(42KB)
Example09-09.txt
(1KB)
9.8 175-180 Arrays - Quiz that uses arrays to keep track of which questions have been answered to allow users to go back and forth among questions, answering as many times they want. This has the same functionality as Example 8.6 but arrays allow the code to be unchanged when new questions are added. Example09-08.zip
(49KB)
Example09-08.txt
(1KB)
9.9 180-181 Which Button Did I Press - Two version of a procedure that give tell you which button was pressed. The first version works in Windows but not in Mac (PowerPoint 2011) because of a bug in PowerPoint 2011. The second version works in both Windows and Mac. Example09-09.zip
(65KB)
Example09-09.txt
(1KB)
9.10 181-186 Printable Slide - This takes Example 8.7 and adjusts it to use arrays so no code has to be changed when multiple-choice questions are added and minimal code has to be changed when short-answer questions are added. This is a quiz that creates a printable slide with the results, including all the answers that were chosen. Example09-10.zip
(52KB)
Example09-10.txt
(1KB)
9.11 187-188 Random Math Problems - Demonstrates the use of random numbers by generating random addition problems. Example09-11.zip
(45KB)
Example09-11.txt
(2KB)
9.12 188-189 Random Quiz with Scorekeeping - Adds scorekeeping to the random math problems in Example 9.11. Example09-12.zip
(48KB)
Example09-12.txt
(1KB)
9.13 189 Random Quiz: Answer Again Until It's Right - Adds to Example 9.12 the ability ask the same question over and over again and only count the first answer Example09-13.zip
(47KB)
Example09-13.txt
(1KB)
9.14 189-192 Ella Can Read - 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. Example09-14.zip
(382KB)
Example09-14.txt
(2KB)
9.15 192 Just like Example 9.14, except it asks how many questions you want when you start. Example09-15.zip
(382KB)
Example09-15.txt
(1KB)
9.16 192-194 Adds scorekeeping to Example 9.15. Example09-16.zip
(387KB)
Example09-16.txt
(2KB)

Examples by Chapter Home | Chapter 6 | Chapter 7 | Chapter 8 | Chapter 9 | Chapter 10 | Chapter 11 | Chapter 12


This page was created by Dr. David M. Marcovitz.
Last updated: May 14, 2012