Having successfully demonstated that we have many duplicated slides
available to our users
http://groups.google.com/group/microsoft.public.powerpoint/browse_thread/thread/
9960704221f126ea#
I have now been given another set of quality-related questions.
How many colours (Fill, Line & Font) are used in a presentation?
What colours are they?
Has the text placeholder been moved from the original (X,Y,H,W)?
How many fonts have been used?
How many font sizes have been used?
The idea is to screen material before it is released to users.
Is this possible with VB?
Steve
David M. Marcovitz - 18 Dec 2007 14:15 GMT
I would say that this is probably possible but not extremely easy. I
could imagine looping through each shape. For text boxes, looping through
each character and extracting the font information. For all shapes,
checking the line and fill colors (oh, and don't forget about possible
grouped shapes). As you loop through, keep track of each of the
properties you care about and check to see if you already have that one.
Eventually, you'll end up with a big list (array?) or two or three of
colors and fonts and such that can be counted. Doesn't sound like much
fun, but it does sound possible.
--David

Signature
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
> Having successfully demonstated that we have many duplicated slides
> available to our users
[quoted text clipped - 15 lines]
>
> Steve
Steve Rindsberg - 18 Dec 2007 16:11 GMT
> For text boxes, looping through
> each character and extracting the font information.
It'd be enough to iterate through the Runs collection.
There's a bad pun in that but *I* ain't goin' there.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
David M. Marcovitz - 18 Dec 2007 16:27 GMT
Steve Rindsberg <abuse@localhost.com> wrote in news:VA.00003c22.2c42b418
@localhost.com:
>> For text boxes, looping through
>> each character and extracting the font information.
>
> It'd be enough to iterate through the Runs collection.
> There's a bad pun in that but *I* ain't goin' there.
Yes, that would be even better. Now, I have had a run-in with Steve, and
I've got to run. Besides, it's time for lunch, and I'm running on empty.
Steve Rindsberg - 18 Dec 2007 16:11 GMT
> Having successfully demonstated that we have many duplicated slides
> available to our users
[quoted text clipped - 12 lines]
>
> Is this possible with VB?
Mostly. You can't do any of this with images that are included in the presentation, of course, but
otherwise, you can step through each slide, ungroup everything in it, then step through the whole
presentation examining each shape for color, text, font etc and keeping a count.
You'd want to do this on a copy of the presentation and throw the thing away once done.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================