> I am sure there is something more to this phrase "One you have a
> reference to the shape (example, in a varable named oSh)"
Yep, but I wasn't certain what the rest of your code looked like.
Thanks for copying it in here.
You were only a hair's breadth away. See the minor changes below.
> I managed to get this far but I don't know what I am doing (That's
> being honest!). There is still has a problem around the "Select Case
> oSh.Type". Hence my suspicions above.
>
> Does the Dim statement automatically set the Type0XCount to zero?
Yes.
> Sub Count_Object_Types_on_This_Slide()
> 'Refers to each object on the current page and returns the number
[quoted text clipped - 20 lines]
> Dim Type20Count As Long
> Dim TypeUnknown As Long
For i = 1 To ActiveWindow.Selection.SlideRange.Shapes.Count
With ActiveWindow.Selection.SlideRange.Shapes(i)
' Delete the following line. Never select anything unless you absolutely must.
' ActiveWindow.Selection.SlideRange.Shapes(i).Select
' And instead of this:
' Select Case oSh.Type
' use this:
Select Case .Type
> Case Is = 1
> 'an AutoShape
[quoted text clipped - 65 lines]
> Next i
> End Sub
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
SV - 23 Jul 2007 16:56 GMT
And it works!
I only have a message box output right now but will integrate this
into my filename, slide_title and slide_number routine.
Rather than use the 'compare presentation' option in PPT I will use
the number of objects by type as a way to segregate slides that have
the same title.
MANY MANY THANKS (am I allowed to shout a bit?)
Now I have to get serious about VB!
Steve Rindsberg - 23 Jul 2007 19:29 GMT
> And it works!
>
[quoted text clipped - 6 lines]
>
> MANY MANY THANKS (am I allowed to shout a bit?)
Louder. LOUDER. ***LOUDER!!!!***
Shouts of gratitude are our paycheck here.
Bellow. <g>
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
SV - 26 Jul 2007 11:51 GMT
First set of presentations analysed suggest 40% of slides are re-used.
Now I have to build a slide library!
Steve Rindsberg - 26 Jul 2007 15:01 GMT
> First set of presentations analysed suggest 40% of slides are re-used.
>
> Now I have to build a slide library!
<G>
There are quite a few products ready-built for this, btw.
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
SV - 27 Jul 2007 08:23 GMT
Got my eye on http://www.slideexecutive.com/ !