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


Download 1.37 Mb.
Pdf ko'rish
bet103/191
Sana08.05.2023
Hajmi1.37 Mb.
#1442581
1   ...   99   100   101   102   103   104   105   106   ...   191
Bog'liq
2.2. Powerful PowerPoint For Educators

answer2
, and 
answer3
variables must be set
to the chosen answers. That is why you need a pro cedure for each
answer. Just fol low the examples of 
Answer1GeorgeWashington
How Did You Do: Re porting Results to the Teacher 105


and
Answer1AbrahamLincoln
for right and wrong an 
swers
respectively. Note that in this ex 
ample we have added
ActivePresentation.SlideShowWindow.View.Next
to our
RightAnswer
pro ce dures so the pre sen ta tion au to mat i cally goes to
the next slide af ter a correct an swer. Leave this out (just like in the
previous ex ample) if you want stu dents to stay on the slide un til they
choose to go for ward.
• You will need an other
Ques 
tion
pro cedure for ev ery short-answer
ques tion (e.g.,
Question5
or 
Question17
).
• You will need an other
qAnswered
and 
an 
swer
vari able (declared
with a 
Dim
state ment and in itialized in the 
Ini 
tial 
ize
pro ce dure)
for each new ques 
tion (i.e.,
q4Answered
and 
answer4
,
q5Answered
and 
answer5
, etc.).
• You will need to add a line to the 
PrintablePage
pro cedure to in-
clude the results for each new ques tion (e.g.,
"Ques 
tion 4: " &
answer4 & Chr$(13) & _
).
• You will need to add the slides with the questions you are adding, ty -
ing the buttons to the ap propriate right and wrong answer pro ce-
dures or the 
Ques 
tion
pro cedure for a short-answer question.
As a scripter, you do not need to un derstand the code to be able to use it. If
you can follow the above steps to add your own ques tions, you are in good
shape. If you want to un derstand the code, read on.
Keeping track of the an swers in 

Download 1.37 Mb.

Do'stlaringiz bilan baham:
1   ...   99   100   101   102   103   104   105   106   ...   191




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