Embedded documents

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Embedded documents

Post by ErikJan »

I use PPT365. I did an inspect document and it tells me I have "Embedded Documents".

I removed (almost) all template slides and masters and all my slides (1 left). I find nothing, even not if I run the code below... Suggestions?

Sub ListEmbeds()

Dim oSl As Slide
Dim oSh As Shape

For Each oSl In ActivePresentation.Slides
For Each oSh In oSl.Shapes
If oSh.Type = msoEmbeddedOLEObject Then
Debug.Print "Slide:" & vbTab & CStr(oSl.SlideIndex) & vbTab & oSh.Name
End If
If oSh.Type = msoPlaceholder Then
If oSh.PlaceholderFormat.ContainedType = msoEmbeddedOLEObject Then
Debug.Print "Slide:" & vbTab & CStr(oSl.SlideIndex) & vbTab & oSh.Name
End If
End If
Next
Next ' Slide

End Sub

User avatar
HansV
Administrator
Posts: 78232
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Embedded documents

Post by HansV »

Can you attach the cleaned presentation?
Best wishes,
Hans

User avatar
HansV
Administrator
Posts: 78232
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Embedded documents

Post by HansV »

I have received the presentation from you.
On the View tab of the ribbon, in the Master Views group, click Slide Master.
Select the blank-looking slide at the top.
On the Home tab of the ribbon, in the Editing group, click Select > Selection Pane...
Scroll down the selection pane to the end.
The last item is Object1. If you delete this, File > Info > Check for Issues > Inspect Document > Inspect will tell you that "No embedded documents were found".
Best wishes,
Hans

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Embedded documents

Post by ErikJan »

That works, thanks Hans. There appeared to be a lot of hidden elements in the slide master!

I think I know the original presentation owner and I doubt he has the skills to hid objects in a master template. Is this something that could have occurred through other ways?

User avatar
HansV
Administrator
Posts: 78232
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Embedded documents

Post by HansV »

It looks like the master slide was imported from another template or presentation, complete with the hidden elements.
Best wishes,
Hans

User avatar
ErikJan
5StarLounger
Posts: 1185
Joined: 03 Feb 2010, 19:59
Location: Terneuzen, the Netherlands

Re: Embedded documents

Post by ErikJan »

Yep, I get that but is the only way to make elements hidden if someone does that manually?
My estimate of the # of people that even KNOW this is possible, let alone DO this in the organization where this came from is less than one in 10000... ;-)

User avatar
HansV
Administrator
Posts: 78232
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Embedded documents

Post by HansV »

As far as I know, the only ways to hide elements are
- Using the Selection Pane
- Using VBA
Best wishes,
Hans