Consulting

Results 1 to 2 of 2

Thread: Macro for deleting slides in Powerpoint from number 60 to 246

  1. #1
    VBAX Newbie
    Joined
    Jun 2018
    Posts
    1
    Location

    Question Macro for deleting slides in Powerpoint from number 60 to 246

    Hi is there a way to delete slides from slide number 60 to slide number 246? Thanks!

  2. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,391
    Location
    Maybe try this method?
    Sub DeleteSlides()
        Dim i As Long  
        ' Loop through slides backwards to avoid index issues
        For i = 246 To 60 Step -1
            ActivePresentation.Slides(i).Delete
        Next i
    End Sub
    Last edited by Aussiebear; 12-28-2024 at 07:44 PM.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •