Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-01-2012, 12:42 AM
JohnWilson JohnWilson is offline Macro To Delete Instance across multiple slides. Windows 7 64bit Macro To Delete Instance across multiple slides. Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,914
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

The first macro will delete any instance of the name found the second only on selected slides.

Code:
Sub delete_all()
Dim shpname As String
Dim osld As Slide
Dim i As Integer
shpname = "the name"
On Error Resume Next
For Each osld In ActivePresentation.Slides
osld.Shapes(shpname).Delete
Next osld
End Sub

Sub deleteFrom_Sel()
Dim shpname As String
Dim osld As Slide
Dim i As Integer
shpname = "the name"
On Error Resume Next
For Each osld In ActiveWindow.Selection.SlideRange
osld.Shapes(shpname).Delete
Next osld
End Sub
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Animation across multiple slides - please help jpscience PowerPoint 3 12-13-2011 11:32 AM
Multiple Monitors/One Presentation/Different Slides future PowerPoint 0 12-12-2011 02:20 PM
Macro To Delete Instance across multiple slides. Music in Powerpoint (multiple slides) Karelia Suite PowerPoint 1 11-05-2011 08:34 AM
Macro To Delete Instance across multiple slides. How to create multiple pages, 1 instance of word window cs_starter Mail Merge 1 09-08-2011 12:52 AM
Macro To Delete Instance across multiple slides. Resize video across multiple slides joelas PowerPoint 3 09-28-2010 07:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:49 PM.


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