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


activepresentation.slideshowwindow.view.gotoslide(


Download 1.37 Mb.
Pdf ko'rish
bet173/191
Sana08.05.2023
Hajmi1.37 Mb.
#1442581
1   ...   169   170   171   172   173   174   175   176   ...   191
Bog'liq
2.2. Powerful PowerPoint For Educators

activepresentation.slideshowwindow.view.gotoslide(
the VBA editor will give you some hints about what you can type next, specifi-
cally what pa ram e ters the
GotoSlide
method wants (see Figure 9.4).
Fig ure 9.4. VBA Ed i tor Sug gests Pa ram e ters for the
GotoSlide
 Method
The lit tle box has a lot of de tails that will help you. First, you can see that there
are two pos si ble pa ram e ters sep a rated by com mas: 
In 
dex
and 
ResetSlide
.
Although the box does not tell you what the parameters are for, it does tell you
166 De bug ging Tips


what kind of in formation they need. In this case,
In 
dex
is a 
Long
vari able
(that’s a kind of in teger). You can prob ably fig ure out that it is the slide num ber
of the slide to go to. 
ResetSlide
is an 
MsoTriState
vari able (which is usu-
ally just a 
True
or 
False
value).
You should also no 
tice that 
In 
dex
is not in square brackets, but
ResetSlide
is. This tells us that 
In 
dex
is required and
ResetSlide
is not.
That is, you have to tell
GotoSlide
which slide to go to, but you don’t have to
tell it whether or not to re set (the 
ResetSlide
tells it whether or not to re set the
animation ef fects on the slide; i.e., leave them in their fi nal state or put them back 
at the be ginning state). Also, no tice that 
ResetSlide
has a de fault value. That
is, if you don’t include a value for 
ResetSlide
, it will as sume you wanted

Download 1.37 Mb.

Do'stlaringiz bilan baham:
1   ...   169   170   171   172   173   174   175   176   ...   191




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