Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-10-2013, 07:28 PM
Catalyster Catalyster is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2013
Novice
Delete the same picture from ALL slides?
 
Join Date: Dec 2013
Posts: 6
Catalyster is on a distinguished road
Post Delete the same picture from ALL slides?

Hi guys!



New to this forum! I've been working on/re-doing a bunch of slides for a certain project. At the end there comes a time where I have to delete the exact same picture (same exact position and everything - a duplicate on every slide). I do this manually and it's a drag. I was just wondering if there is a possible way to do this (delete the same picture on all slides). The reverse of this (via Slide Master) is possible (i.e. adding the same picture/text-box on all the slides).

Thanks!
Reply With Quote
  #2  
Old 12-11-2013, 12:16 AM
JohnWilson JohnWilson is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Does the image in question have the same NAME on every slide? (If so what is it?)
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #3  
Old 12-11-2013, 07:43 AM
Catalyster Catalyster is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2013
Novice
Delete the same picture from ALL slides?
 
Join Date: Dec 2013
Posts: 6
Catalyster is on a distinguished road
Default

I'm guessing it does since it's a repeat "paste" on every slide. Where would I find out it's name designation from the slide?
Reply With Quote
  #4  
Old 12-11-2013, 09:54 AM
JohnWilson JohnWilson is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Show the Selection Pane and you will see the name.

It's in the HOME Tab >Editing (Select) on the right
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #5  
Old 12-12-2013, 01:12 PM
Catalyster Catalyster is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2013
Novice
Delete the same picture from ALL slides?
 
Join Date: Dec 2013
Posts: 6
Catalyster is on a distinguished road
Default

With your last comment I was able to answer your first question. Yes, they also have the same name on all the slides.
Reply With Quote
  #6  
Old 12-13-2013, 12:31 AM
JohnWilson JohnWilson is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

This macro should do it:

Sub deletePix()
Dim osld As Slide
'insert the real name instead of Picture 2
Const PicName As String = "Picture 2"
On Error Resume Next
For Each osld In ActivePresentation.Slides
osld.Shapes(PicName).Delete
Next osld
End Sub

How to use macros
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #7  
Old 12-14-2013, 12:33 PM
Catalyster Catalyster is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2013
Novice
Delete the same picture from ALL slides?
 
Join Date: Dec 2013
Posts: 6
Catalyster is on a distinguished road
Default

Thank you very much. I'll try that

EDIT: It worked. I just had to select all the slides. Much appreciated. This is going to save me a good deal of time

Cheers
Reply With Quote
  #8  
Old 12-14-2013, 01:00 PM
JohnWilson JohnWilson is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Should be no need to select slides!
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
  #9  
Old 12-14-2013, 03:38 PM
Catalyster Catalyster is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2013
Novice
Delete the same picture from ALL slides?
 
Join Date: Dec 2013
Posts: 6
Catalyster is on a distinguished road
Default

You're right. No need to do that. Just a simple click. If I were to delete more than 1 picture (all the same ofcourse), would I add a "+" in the code or simply a new line. Thanks
Reply With Quote
  #10  
Old 12-14-2013, 10:10 PM
JohnWilson JohnWilson is offline Delete the same picture from ALL slides? Windows 7 64bit Delete the same picture from ALL slides? Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

PowerPoint allows you to have shapes with the same name on a single slide. This is really bad coding! When you delete though it only deletes the first shape with that name!

To get them all try:

Sub deletePix()
Dim osld As Slide
Dim lngCount As Long
'insert the real name instead of Picture 2
Const PicName As String = "Picture 2"
On Error Resume Next
For Each osld In ActivePresentation.Slides
For lngCount = osld.Shapes.Count To 1 Step -1
If osld.Shapes(lngCount).Name = PicName Then osld.Shapes(lngCount).Delete
osld.Shapes(PicName).Delete
Next lngCount
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Generating text output from PowerPoint picture/name slides bornslippy PowerPoint 2 12-05-2013 11:04 AM
Delete the same picture from ALL slides? Delete upper left corner of picture tom_94305 Word 1 08-03-2012 09:09 PM
Move Picture by picture name, rename picture by picture name CatMan PowerPoint 2 04-18-2012 12:21 PM
Delete the same picture from ALL slides? Macro To Delete Instance across multiple slides. excelledsoftware PowerPoint 2 03-01-2012 07:29 PM
Inserting slides between existing slides in 2003 watsonstudios PowerPoint 1 05-20-2011 08:15 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:49 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft