View Single Post
 
Old 01-07-2018, 01:28 PM
FlashPoint FlashPoint is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2018
Posts: 6
FlashPoint is on a distinguished road
Default

Quote:
Originally Posted by JohnWilson View Post
It should remove them all.
Are you sure you got the code correct (eg NOT taking out the asterisks's when you modified the email the email?)
Can you post the presentation somewhere? (maybe just a few of the slides)
File is big but plz first check my code to make sure that I didn't modify it in wrong way:

Sub Hello()
Dim osld As Slide
Dim L As Long
For Each osld In ActivePresentation.Slides
For L = osld.Shapes.Count To 1 Step -1
If osld.Shapes(L).HasTextFrame Then
If osld.Shapes(L).TextFrame.HasText Then
' obviously use their address
If LCase(osld.Shapes(L).TextFrame.TextRange) Like LCase("*email@aa.com*") Then osld.Shapes(L).Delete
End If
End If
Next
Next
End Sub

Last edited by FlashPoint; 01-08-2018 at 08:45 AM.
Reply With Quote