Powerful PowerPoint for Educators: Using Visual Basic for Applications to Make PowerPoint Interactive


Download 1.37 Mb.
Pdf ko'rish
bet157/191
Sana08.05.2023
Hajmi1.37 Mb.
#1442581
1   ...   153   154   155   156   157   158   159   160   ...   191
Bog'liq
2.2. Powerful PowerPoint For Educators

Con clu sion
In this chap ter you have de veloped a better un derstanding of a few VBA
tricks we had already used, such as loop ing and 
If
statements, and you learned
several new tricks, in cluding timed functions, ar rays, and random numbers.
These tricks are beginning to get more com plicated than the ear lier chapters, so
if you don’t understand how they work, you can simply type in the VBA code
from the examples. If you do un derstand how they work, you can think of new
things that you can do with these tricks—or at least mod ify the ex amples to suit
your own purposes.
Now that you might be writing some of your own code, or at least typ ing in
long ex amples, you have a lot of op portunity to make mistakes. Mistakes are
common in scripting and pro gramming, and they are called bugs. Fix ing mis-
takes is called debugging. In the next chapter, you will learn some tricks to help
you de bug your code, that is, fix your mistakes.
150 More Tricks for Your Scripting Bag


Ex er cises to Try
Ä
Create a tem plate of a mul tiple-choice quiz using the code from
this chapter. Teach three of your friends, colleagues, or stu dents
to create their own multiple-choice quiz zes us ing your template.
Remember that they don’t have to change any of the VBA to do
this.
Ä
Create a template of a quiz with short-answer questions using
the code from this chapter. Teach three of your friends, col -
leagues, or stu dents to create their own quizzes with short-an-
swer questions using your template. Re member that they will
have to edit the VBA, so you will have to teach them how to get
to the VBA Ed itor, but they will only have to copy and paste
your
Ques 
tion
code and change the question num ber, the text
of the question, and the answer to the ques tion in VBA.
Ex er cises to Try 151




Download 1.37 Mb.

Do'stlaringiz bilan baham:
1   ...   153   154   155   156   157   158   159   160   ...   191




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling