In article <20AB552F-3F76-4503-92A3-(E-Mail Removed)>,
Aneasiertomorrow wrote:
> Hey John
>
> Probably a blonde question but what is osld? You know I would like to
> understand this whole VBA thing :-)
osld is just the name of a variable (a virtual box to store a nugget of data of
some sort). It could have been named Fred or AnEasierTomorrow or LucyFromOz.
But it's become more or less standard to use special letters to remind us of
what type data the variable contains so:
The "Dim osld as Slide" bit tells VBA "The variable osld will contain slide
objects" (well, actually "references" to slides, but it's as good as the same).
The "o" means Object and the "sld" is less typing than "slide".
If we weren't lazy sods, we wouldn't be trying to get the computer to do our
work for us, right?
With that o (object) and sld (slide) reminder in our faces, we know not to ask
VBA to do unreasonable, impossible or immoral things with/to it. Just things
that a slide knows how to do. Handy.
And better ... because VBA now knows that osld will contain slides and only
slides, it can tell us useful things about the properties and methods of slides
when we type stuff in the editor. John types osld. and VBA pops up all of the
things it's possible to do with slides or change about slides. Handier yet.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:
www.pptfaq.com
PPTools:
www.pptools.com
================================================