View Single Post
 
Old 12-11-2021, 01:18 AM
JohnWilson JohnWilson is offline Windows 10 Office 2019
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

You can do this but you will need to specify what area you mean

MAKE SURE YOU EXPERIMENT ON A COPY

eg to delete anything that is in the top left 1 inch

NOTE 1 inch is 72 points

Code:
Sub killtop()
Dim L As Long
Dim osld As Slide
For Each osld In ActivePresentation.Slides
For L = osld.Shapes.Count To 1 Step -1
With osld.Shapes(L)
If .Left < 72 And .Top < 72 Then .Delete
End With
Next L
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote