![]() |
#1
|
|||
|
|||
![]()
Ok, first off I am very new to this. I have been tasked with deleting slidesets from a powerpoint presentation using a macro. I am familiar with using this:
ActivePresentation.Slides(2).Delete however I am looking to delete a range of slides, starting with slide 2. Any help is greatly appreciated. ![]() David |
#2
|
|||
|
|||
![]()
You can delete the selected slides
ActiveWindow.Selection.SlideRange.Delete However it would be quicker just to pressthe DELETE key so I guess this isn;t what you need! To delete a range of slides you can use ActivePresentation.Slides.Range(Array(2, 3, 5)).Delete If the slides to delete are contiguous Dim i As Integer 'to delete say 3 to 10 For i = 10 To 3 Step -1'always loop backwards when deleting ActivePresentation.Slides(i).Delete Next i Last edited by JohnWilson; 04-06-2013 at 06:56 AM. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
delete123 | PowerPoint | 2 | 04-10-2013 05:38 AM |
Deleting Macro Button | mata30s | Word VBA | 0 | 01-23-2013 12:04 PM |
![]() |
slothman2000 | PowerPoint | 15 | 09-22-2012 04:42 AM |
![]() |
jillapass | Excel Programming | 1 | 01-11-2012 10:02 AM |
Powerpoint Macro To Insert Objects Sample | lahuva | PowerPoint | 0 | 07-06-2011 10:51 AM |