Hello,
I have a shape on a slide that I would like to jump to via VBA. The reason for this is the slide number may change and I want to use the shape as the anchor.
Using Alt + F10 I can set the shape name such as "Triangle". What I'd like to do is search the active presentation for "Triangle", return the slide number, and using to switch slides using GoToSlide or something similar.
Also, if there is a way to call the internal hyperlink to a specific slide that might also work. If you use the link feature in Insert > Link > Place in This Document > "Selected Slide"
Even if the slide order changes, the link will automatically update and stay on the correct slide.
I know it can call an external link.
Any other possible methods would be appreciated too.
Thanks,
Mike
I have a shape on a slide that I would like to jump to via VBA. The reason for this is the slide number may change and I want to use the shape as the anchor.
Using Alt + F10 I can set the shape name such as "Triangle". What I'd like to do is search the active presentation for "Triangle", return the slide number, and using to switch slides using GoToSlide or something similar.
Code:
ActivePresentation.SlideShowWindow.View.GotoSlide
Also, if there is a way to call the internal hyperlink to a specific slide that might also work. If you use the link feature in Insert > Link > Place in This Document > "Selected Slide"
Even if the slide order changes, the link will automatically update and stay on the correct slide.
I know it can call an external link.
Code:
ActivePresentation.FollowHyperlink _
Address:="[URL unfurl="true"]https://example.microsoft.com",[/URL] _
NewWindow:=True, AddHistory:=True
Any other possible methods would be appreciated too.
Thanks,
Mike