Figure 10.5. Ex ample of Slide Cre ated When Some one Has Cho sen to Work with You
This slide will be in serted as the eleventh slide.
The fol lowing line cre ates
the new slide:
ActivePresentation.Slides.Add in
dex:=11, Lay
out:=ppLayoutText
The
in
dex:=11
en sures that the new slide will al ways be the eleventh
slide in the presentation. The
Lay
out:=ppLayoutText
makes it a standard
text slide with a ti tle and one text area. Note that in
earlier chapters pa rameters
for procedures and built-in functions were al ways con tained in parentheses.
As a general rule, VBA ex pects something to be re turned when the pa rame-
ters are in pa
rentheses and noth
ing to be returned when they are not.
Dostları ilə paylaş: