VBA code for hyperlinking slides present within the 'slide collection'

Shanmuga Priyan 0 Reputation points
2023-10-29T19:20:13.2466667+00:00

I have created a VBA code for PowerPoint. It creates many slides and slide collections. Among them, I added 163 slides into new collection named "thirdCollection". Now I want to create 2 shapes in each slide present only in "thirdCollection". One shape acts as next slide button and another slide acts as previous slide button by enabling hyperlinks in them. All these hyperlinks want to work within that particular collection, and it shouldn't interefere or disturb other slides or collection in the presentation. Please give me idea of code snippet to establish this feature.

Hyperlinks like ppActionNextSlide and ppActionPreviousSlide doesn't work as expected because the slides present within the collection "third collection" is not in order and other slides are also position inbetween the slides of this collection.

I want the hyperlinks should work within the collection even the slides are randomly positioned in the presentation.

Please fill the below code or give me an idea or reference links.

For each pptslide in third collection

Next pptslide
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,572 questions
PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
222 questions
0 comments No comments
{count} votes