Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Goto Shape name in powerpoint via vba

Status
Not open for further replies.

remeng

Technical User
Jul 27, 2006
518
US
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.

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
 
Ah - because it is Christmas, I answered this in the forum you originally posted it forum68
 
So there IS a Santa Clause!

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
"The most incomprehensible thing about the universe is that it is comprehensible" A. Einstein
AD1D550E-FCB5-4AB6-A3C8-1F86CACE2554_ne1bcz.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top