Consulting

Results 1 to 2 of 2

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,482
    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
  •