VBA assign name to each slide in PowerPoint Presentation

Answered

I want to give name to each slide to PPT using VBA. Appreciate your help.

 

Top Contributor Asked on September 6, 2017 in VBA PowerPoint.
Add Comment
1 Answer(s)
Best answer

HI Lora,

Here is the solution for your requirement to give name to each slide in PowerPoint Presentation using VBA

Sub assignNames()
Dim i As Integer
i = 1
For Each sld In ActivePresentation.Slides
ActivePresentation.Slides(i).Name = "Slide" & i
i = i + 1
Next
End Sub

Please do let me know, If you need any further help.

Regards!

Expert Answered on September 6, 2017.
Add Comment
  • Found this useful?

    Please share using the share button above.

    If you found the answer is best answer for your question, Please mark as 'best answer' by clicking on the right tick mark icon at the left side of the answer.

    Found the answer useful and wants to credit the user, then vote the answer (vote up).

  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.