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.
thanks
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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. (Manual hyperlink links to next slide present in the order of slides but I want it to link to next slide present within that collection.)
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.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
thanks
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Please ignore all suggestions that urge you to take VBA questions to the Q&A forum. Unless you enjoy wasting your time.
Here's a snippet you can adapt to what you're doing; instead of iterating through the entire .Slides collection, you'll want to iterate through the collection you've defined.
Sub thing() ' Because I'm too lazy to give it a kewl name!
Dim oSl As Slide
For Each oSl In ActivePresentation.Slides
With oSl
' And being lazy, I'll simply add the pre-defined shapes that
' already include the hyperlinks to next/previous slides
.Shapes.AddShape msoShapeActionButtonForwardorNext, 0, 0, 100, 100
.Shapes.AddShape msoShapeActionButtonBackorPrevious, 200, 0, 100, 100
End With
Next
End Sub
Hello SharunGi,
Thank you for posting on the Microsoft Community Forums. I hope you are well.
To help you better resolve your issue, we strongly recommend that you post your issue in our Microsoft Q&A forumto learn more about the resolution on your issue with the correct VBA codes. This way, the experts in these forums will be able to provide more specific information about your concern, so that you can get exactly the result you want. We want you to get exactly the information and get the result you want. Moreover, we will leave this thread open in case volunteer moderators or another community members wants to participate.
We appreciate your understanding.
Sincerely,
ReynaldoB
Microsoft Community Forum Moderator