Hi,
You can use VBA code to help you get the result, try this following steps:
- Create a Macro:
- Open PowerPoint and press
Alt + F11
to open the VBA editor. - In the left pane, find your presentation and right-click on it, then select
Insert > Module
. - In the module, enter the following code:
Sub OpenNextPresentation() Dim pptApp As Object Dim pptPres As Object Dim indexSlide As Object Dim nextFile As String ' Set PowerPoint application object Set pptApp = CreateObject("PowerPoint.Application") ' Open the index presentation Set pptPres = pptApp.Presentations.Open("C:\path\to\index\presentation.pptx") ' Get the index slide Set indexSlide = pptPres.Slides(1) ' Assuming the index slide is the first slide ' Get the next file path (based on your index slide setup) nextFile = indexSlide.Shapes(1).TextFrame.TextRange.Text ' Assuming the file path is in the first shape ' Open the next presentation pptApp.Presentations.Open nextFile ' Wait a few seconds, then close the current presentation and return to the index slide Application.Wait (Now + TimeValue("00:00:05")) pptApp.Presentations(nextFile).Close pptPres.SlideShowWindow.View.GotoSlide (1) ' Return to the index slide End Sub
- Open PowerPoint and press
- Run the Macro:
- Close the VBA editor and return to PowerPoint.
- Press
Alt + F8
to open the macro dialog box, selectOpenNextPresentation
, and run it.
This macro will open the next presentation listed on your index slide, wait a few seconds, close it, and return to the index slide. You can adjust the waiting time and the way the file paths are retrieved based on your specific setup.
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.