#1
|
|||
|
|||
How remove a repeated text box from all slides in PowerPoint
Hello there
I have a PowerPoint document that it’s modifier (he’s not even it’s author) used a textbox in all of the slides & put his email address there! Slides are a lot & I can’t simple remove them one by one it’s a waste of time. Can anyone plz help me how can I remove them all at once? I saw someone did it to a repeated picture using “Macros” but I’m not expert how to do. Your help would be appreciated, thx. |
#2
|
|||
|
|||
Code:
Sub zapper() 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( "*john@somewhere.com*" )Then osld.Shapes(L).Delete End If End If Next Next End Sub |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
Google for how to use vba
|
#5
|
|||
|
|||
Thanks I learned to how use Macros & used your code, but this code only removed his Email address from first slide not all that hundreds slides.
Can u check it again plz? Thx |
#6
|
|||
|
|||
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) |
#7
|
|||
|
|||
Quote:
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. |
#8
|
|||
|
|||
Looks OK.
Are you sure you can manually delete the textboxes? They may have added textboxes to the master or layouts which the code will not delete And just in case you are trying to pass of someones work as your own I will be able to tell so don't go there if that is what you are doing. Apologies if this is legit! |
#9
|
|||
|
|||
Quote:
I want to read it for his great work on medical science not those spams! anyway, I uploaded file here with several slides, can u plz check and help me in? thx http://www.mediafire.com/file/7qgd23...gyton%2092.ppt |
#10
|
|||
|
|||
Looks like you have the email wrong. It is remove
Make sure the email in the code matches that on the slides. Since it's a fairly unusual email you could also use: If LCase(osld.Shapes(L).TextFrame.TextRange) Like LCase("*remove*") Then osld.Shapes(L).Delete Last edited by JohnWilson; 01-08-2018 at 09:03 AM. |
#11
|
|||
|
|||
Quote:
now I used your first code with main spam Email and they all removed! thank u so much you are genius in coding! |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Powerpoint 2016 slide show presenter view as powerpoint 2010 multiple slides at the bottom | jomo252 | PowerPoint | 0 | 10-04-2017 12:20 PM |
Add text during powerpoint show duplicated to all slides | techsupport1 | PowerPoint | 0 | 09-07-2016 02:33 PM |
Remove title from APA citation repeated first author | pablrodr | Word | 4 | 09-11-2015 01:00 AM |
Generating text output from PowerPoint picture/name slides | bornslippy | PowerPoint | 2 | 12-05-2013 11:04 AM |
Powerpoint 2003 - slides with Excel text | franklyorange | PowerPoint | 0 | 08-19-2008 09:30 AM |