VBA code for hyperlinking slides present within the 'slide collection'
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