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


Download 1.37 Mb.
Pdf ko'rish
bet111/191
Sana08.05.2023
Hajmi1.37 Mb.
#1442581
1   ...   107   108   109   110   111   112   113   114   ...   191
Bog'liq
2.2. Powerful PowerPoint For Educators

visitedPart1
,
visitedPart2
, and 
visitedPart3
are
the keys to this ex ample. They tell us whether the student has completed each
part of the tu torial. They are set to 
False
in the 
Ini 
tial 
ize
pro ce dure be cause 
no part of the tu 
torial has been completed. They are set to 
True
in the
ReturnToMenuFromPart
pro cedures to in dicate when each part of the tu torial
has been completed.
Finally, three new procedures have been added:
HideQuizButton_with_ActivePresentation.Slides(2).Shapes(5).Vis_i_ble_=_False_Change_False_to_True'>HideQuizButton
,
ShowQuizButton
, and 
DoWeShowQuizButton
. In my example, the Quiz but -
ton is shape number 5 on the menu slide (slide num ber 2) so I can hide it in
HideQuizButton
with
ActivePresentation.Slides(2).Shapes(5).Vis 

ble = False
Change
False
to 
True
to show it, and change 5 to some other num ber if your
Quiz but ton is not shape 5. Also note that the Quiz but ton should be hid den at the 
be gin ning so
HideQuizButton
is added to 
Ini 
tial 
ize
.
DoWeShowQuizButton
asks a three-part question: Is part 1 of the tu torial
completed, is part 2 of the tu torial com pleted, and is part 3 of the tu torial com pleted?
If all three parts have been completed—(
visitedPart1
,
visitedPart2
, and
visitedPart3
have each been set to 
True
)—then we show the Quiz but ton. If
any part has not been com pleted (any 
visitedPart
is not 
True
), then we hide
the Quiz but ton.
Learn First, Ask Ques tions Later: The Tu torial and Quiz 113



Download 1.37 Mb.

Do'stlaringiz bilan baham:
1   ...   107   108   109   110   111   112   113   114   ...   191




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