Hi folks. Issue with action settings on buttons hyperlinked to other slides.

M

Mike M.

I am using PowerPoint 2002. I am of course bumping my head against a wall.
I use automation (C++) to build presentations. Sometimes I use existing
presentations and append them to slides I create programatically. In my
latest futile efforts, the existing presentation is one with navigation
buttons (Action Buttons) on each slide to provide a controlled stroll
through the presentation. My specific test show has 7 slides. Slide 1 has
3 buttons on it as such; Button 1 hyperlinks to slide 2, button 2 links to
slide 4, button 3 links to slide 7. Each of those has buttons for next,
previous and home (first slide). Well, after my program copies the slides
to the new presentation the buttons on slide 1 go like this; Button 1
hyperlinks to slide 2, button 2 links to slide 3 and button 3 links to slide
4. The Next, previous and first slide are fine. Hmm, so I did this
manually in PPT and it did the same thing. It is because when I paste the
first slide the slides to be linked to don't exist so PPT sets the link to
Side 0 (which there never is). It then seems to try to outsmart me when I
paste the remaining slides (and it does). I also tried Insert Slides from
File (Insert All) but the same thing happened. Ha! I won't let it win. I
then inserted each slide in reverse order! The buttons ended up like this;
Button 1 hyperlinks to slide 6, button 2 links to slide 5, button 3 links to
slide 4. PPT wins. I am thinking I'll have to set tags, remember links,
paste slides and rebuild them programatically after all slides are copied
but I would really like to avoid that. I do actually have better things to
do.

Anyone know of a sneaky little trick so I can get PPT to leave the links as
they were whilst I copy and paste slides?

TIA
 
G

Guest

Hi Mike,

I've had the best luck when the slides have titles identified by one of the
standard layouts. I get pretty consistent reliable links when the links can
go to a titled slide as opposed to slide 1, etc.

Glenna
 
E

Echo S

Hi, Mike,

You probably know by now that I'm not a coder (okay, well, maybe you
don't -- but I just told you so now you do! Do I sound enough like Steve
yet? <g>)

Anyway, what I've found when manually moving/cutting/pasting slides with
links is that if I move/cut/paste them all together, I have better luck at
keeping the links intact. I guess that moving the *group* of slides around
means that the 0,Slide0 thing doesn't show up because I haven't deleted
anything the link is linking to.

Does that make sense at all?

So I'm wondering if there's any way to append the slides as a group into
your existing presentation.

Just a thought until the big guns get here. :)
 
S

Steve Rindsberg

Hmm. Off top of head, would it be possible to create dummy slides so that the
slides linked to ARE there, then as you paste in each real slide, delete the
dummy?
 
S

Steve Rindsberg

Does that make sense at all?
So I'm wondering if there's any way to append the slides as a group into
your existing presentation.

Lots. Might make sense to insert the whole other presentation and then delete
the unwanted slides.

Just a thought until the big guns get here. :)

--
Echo [MS PPT MVP]
http://www.echosvoice.com

Mike M. said:
I am using PowerPoint 2002. I am of course bumping my head against a wall.
I use automation (C++) to build presentations. Sometimes I use existing
presentations and append them to slides I create programatically. In my
latest futile efforts, the existing presentation is one with navigation
buttons (Action Buttons) on each slide to provide a controlled stroll
through the presentation. My specific test show has 7 slides. Slide 1 has
3 buttons on it as such; Button 1 hyperlinks to slide 2, button 2 links to
slide 4, button 3 links to slide 7. Each of those has buttons for next,
previous and home (first slide). Well, after my program copies the slides
to the new presentation the buttons on slide 1 go like this; Button 1
hyperlinks to slide 2, button 2 links to slide 3 and button 3 links to slide
4. The Next, previous and first slide are fine. Hmm, so I did this
manually in PPT and it did the same thing. It is because when I paste the
first slide the slides to be linked to don't exist so PPT sets the link to
Side 0 (which there never is). It then seems to try to outsmart me when I
paste the remaining slides (and it does). I also tried Insert Slides from
File (Insert All) but the same thing happened. Ha! I won't let it win. I
then inserted each slide in reverse order! The buttons ended up like this;
Button 1 hyperlinks to slide 6, button 2 links to slide 5, button 3 links to
slide 4. PPT wins. I am thinking I'll have to set tags, remember links,
paste slides and rebuild them programatically after all slides are copied
but I would really like to avoid that. I do actually have better things to
do.

Anyone know of a sneaky little trick so I can get PPT to leave the links as
they were whilst I copy and paste slides?

TIA
 
M

Mike M.

Thanks for the suggestion Glenna. Unfortunately "other" people (read
customers) build the presentations or receive them from advertisers so I
don't have any influence over how they will do their linking. If necessary
I can place constraints on what they do but then I have mad customers.
 
M

Mike M.

You are approaching Steve speak pretty close. A few more trips down VBA
lane and you will have it down pat. I tried that using two methods; Insert
slides from file , insert all slides and I selected all the slides from
pres1 and then pasted into empty pres2. Same results. I am going to persue
what Steve suggested on another reply about dummy slides. Anything with the
word dummy in it attracts my attention.

Thanks for the suggestion and keep up the mumbly talk!

Echo S said:
Hi, Mike,

You probably know by now that I'm not a coder (okay, well, maybe you
don't -- but I just told you so now you do! Do I sound enough like Steve
yet? <g>)

Anyway, what I've found when manually moving/cutting/pasting slides with
links is that if I move/cut/paste them all together, I have better luck at
keeping the links intact. I guess that moving the *group* of slides around
means that the 0,Slide0 thing doesn't show up because I haven't deleted
anything the link is linking to.

Does that make sense at all?

So I'm wondering if there's any way to append the slides as a group into
your existing presentation.

Just a thought until the big guns get here. :)

--
Echo [MS PPT MVP]
http://www.echosvoice.com

Mike M. said:
I am using PowerPoint 2002. I am of course bumping my head against a wall.
I use automation (C++) to build presentations. Sometimes I use existing
presentations and append them to slides I create programatically. In my
latest futile efforts, the existing presentation is one with navigation
buttons (Action Buttons) on each slide to provide a controlled stroll
through the presentation. My specific test show has 7 slides. Slide 1 has
3 buttons on it as such; Button 1 hyperlinks to slide 2, button 2 links to
slide 4, button 3 links to slide 7. Each of those has buttons for next,
previous and home (first slide). Well, after my program copies the slides
to the new presentation the buttons on slide 1 go like this; Button 1
hyperlinks to slide 2, button 2 links to slide 3 and button 3 links to slide
4. The Next, previous and first slide are fine. Hmm, so I did this
manually in PPT and it did the same thing. It is because when I paste the
first slide the slides to be linked to don't exist so PPT sets the link to
Side 0 (which there never is). It then seems to try to outsmart me when I
paste the remaining slides (and it does). I also tried Insert Slides from
File (Insert All) but the same thing happened. Ha! I won't let it win. I
then inserted each slide in reverse order! The buttons ended up like this;
Button 1 hyperlinks to slide 6, button 2 links to slide 5, button 3
links
to
slide 4. PPT wins. I am thinking I'll have to set tags, remember links,
paste slides and rebuild them programatically after all slides are copied
but I would really like to avoid that. I do actually have better things to
do.

Anyone know of a sneaky little trick so I can get PPT to leave the links as
they were whilst I copy and paste slides?

TIA
 
M

Mike M.

I did and it gave the same results. :-(

Thanks Big Gun.

Steve Rindsberg said:
Does that make sense at all?

So I'm wondering if there's any way to append the slides as a group into
your existing presentation.

Lots. Might make sense to insert the whole other presentation and then delete
the unwanted slides.

Just a thought until the big guns get here. :)

--
Echo [MS PPT MVP]
http://www.echosvoice.com

Mike M. said:
I am using PowerPoint 2002. I am of course bumping my head against a wall.
I use automation (C++) to build presentations. Sometimes I use existing
presentations and append them to slides I create programatically. In my
latest futile efforts, the existing presentation is one with navigation
buttons (Action Buttons) on each slide to provide a controlled stroll
through the presentation. My specific test show has 7 slides. Slide
1
has
3 buttons on it as such; Button 1 hyperlinks to slide 2, button 2 links to
slide 4, button 3 links to slide 7. Each of those has buttons for next,
previous and home (first slide). Well, after my program copies the slides
to the new presentation the buttons on slide 1 go like this; Button 1
hyperlinks to slide 2, button 2 links to slide 3 and button 3 links to slide
4. The Next, previous and first slide are fine. Hmm, so I did this
manually in PPT and it did the same thing. It is because when I paste the
first slide the slides to be linked to don't exist so PPT sets the link to
Side 0 (which there never is). It then seems to try to outsmart me when I
paste the remaining slides (and it does). I also tried Insert Slides from
File (Insert All) but the same thing happened. Ha! I won't let it
win.
I
then inserted each slide in reverse order! The buttons ended up like this;
Button 1 hyperlinks to slide 6, button 2 links to slide 5, button 3
links
to
slide 4. PPT wins. I am thinking I'll have to set tags, remember links,
paste slides and rebuild them programatically after all slides are copied
but I would really like to avoid that. I do actually have better
things
to
do.

Anyone know of a sneaky little trick so I can get PPT to leave the
links
as
they were whilst I copy and paste slides?

TIA

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
M

Mike M.

I am immediately attracted to this possible solution because of the word
dummy. That word alone makes me feel comfortable that I may have a chance
to comprehend/accomplish a solution. It may be easier than the other route.
What I was thinking was going through each shape, determining if it had a
hyperlink, saving the hyperlink to a tag on the shape, copy all slides, go
through the new pres and set the hyperlink back for all tagged shapes. BUT,
I like the dummy better!

Thanks for the food for thought (hee, hee, he said food!).
 
S

Steve Rindsberg

I am immediately attracted to this possible solution because of the word
dummy. That word alone makes me feel comfortable that I may have a chance
to comprehend/accomplish a solution. It may be easier than the other route.
What I was thinking was going through each shape, determining if it had a
hyperlink, saving the hyperlink to a tag on the shape, copy all slides, go
through the new pres and set the hyperlink back for all tagged shapes. BUT,
I like the dummy better!

Thanks for the food for thought (hee, hee, he said food!).

It always comes back to that. The worm turns, as they say (but wouldn't you
rather they didn't?)

I think you'll need to go through the hyperlink collection on each slide rather
than iterating through the shapes collection. Then it gets a bit weird.

' The hyperlink can be "attached" to a shape or to a text range w/in a shape
If TypeName(oHyperlink.Parent.Parent) = "TextRange" then
' oHyperlink.Parent.Parent.Parent.Parent gives you a reference
' to the parent shape
Else
If oHyperlink.Address <> "" Then
' it's a link to external file and we don't care about it
Else
' oHyperlink.Parent.Parent gives you the reference to the shape
End if
End if

That should be the basics (C++ics?) you need to get started.
 
S

Steve Rindsberg

I did and it gave the same results. :-(

Nutz.

Might have to build a list of all the slide to slide links and use that to
transfer the info to the new presentation. Blechh.
Thanks Big Gun.

Steve Rindsberg said:
Does that make sense at all?

So I'm wondering if there's any way to append the slides as a group into
your existing presentation.

Lots. Might make sense to insert the whole other presentation and then delete
the unwanted slides.

Just a thought until the big guns get here. :)

--
Echo [MS PPT MVP]
http://www.echosvoice.com

I am using PowerPoint 2002. I am of course bumping my head against a
wall.
I use automation (C++) to build presentations. Sometimes I use existing
presentations and append them to slides I create programatically. In my
latest futile efforts, the existing presentation is one with navigation
buttons (Action Buttons) on each slide to provide a controlled stroll
through the presentation. My specific test show has 7 slides. Slide 1
has
3 buttons on it as such; Button 1 hyperlinks to slide 2, button 2 links to
slide 4, button 3 links to slide 7. Each of those has buttons for next,
previous and home (first slide). Well, after my program copies the slides
to the new presentation the buttons on slide 1 go like this; Button 1
hyperlinks to slide 2, button 2 links to slide 3 and button 3 links to
slide
4. The Next, previous and first slide are fine. Hmm, so I did this
manually in PPT and it did the same thing. It is because when I paste the
first slide the slides to be linked to don't exist so PPT sets the link to
Side 0 (which there never is). It then seems to try to outsmart me when I
paste the remaining slides (and it does). I also tried Insert Slides from
File (Insert All) but the same thing happened. Ha! I won't let it win.
I
then inserted each slide in reverse order! The buttons ended up like
this;
Button 1 hyperlinks to slide 6, button 2 links to slide 5, button 3 links
to
slide 4. PPT wins. I am thinking I'll have to set tags, remember links,
paste slides and rebuild them programatically after all slides are copied
but I would really like to avoid that. I do actually have better things
to
do.

Anyone know of a sneaky little trick so I can get PPT to leave the links
as
they were whilst I copy and paste slides?

TIA

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
M

Mike M.

"As the worm turns..." My new favorite soap opera. I used a VB program to
copy the presentation and looked at the source and copied pres in the watch
window. What I found out was; My source presentation had slides inserted
in all different order. Meaning Slide 1 - 7 had Slide IDs like 256, 257,
260, 258, 261, etc. The copied pres had slide IDs in a contiguous order
starting with 256. So what it had done is change the slide ID as the slide
was pasted. The internal hyperlinks remained the same so based upon the
right to left priority of the subAddress field it was using the slide ID to
link to which had changed. I am going to modify the SubAddress fields on
the copied pres to make the format -1,index, and just use the index to link
with. How's that sound?

P.S. It is lunch time now so I need to appease my internal companion. <g>
 
S

Steve Rindsberg

"As the worm turns..." My new favorite soap opera. I used a VB program to
copy the presentation and looked at the source and copied pres in the watch
window. What I found out was; My source presentation had slides inserted
in all different order. Meaning Slide 1 - 7 had Slide IDs like 256, 257,
260, 258, 261, etc. The copied pres had slide IDs in a contiguous order
starting with 256. So what it had done is change the slide ID as the slide
was pasted.

I suppose it has to do that; if the existing pres already has a slide 256, it
wouldn't do to drop another slide 256 in with it. The two would get to
arguing. Happens often enough with duplicated shapes, tsk tsk.

The internal hyperlinks remained the same so based upon the
right to left priority of the subAddress field it was using the slide ID to
link to which had changed. I am going to modify the SubAddress fields on
the copied pres to make the format -1,index, and just use the index to link
with. How's that sound?

Off top of head? Spiffy! Nice.
P.S. It is lunch time now so I need to appease my internal companion. <g>

Oh darn. I was so hoping to see the videos of your Alien re-enactment.
 
M

Mike M.

Steve Rindsberg said:
I suppose it has to do that; if the existing pres already has a slide 256, it
wouldn't do to drop another slide 256 in with it. The two would get to
arguing. Happens often enough with duplicated shapes, tsk tsk.

The internal hyperlinks remained the same so based upon the

Off top of head? Spiffy! Nice.

Worked like a charm. I am happy once again (and so is my little friend).
Oh darn. I was so hoping to see the videos of your Alien re-enactment.

I'll see if I can some if the images from my internalist. <g>
 
S

Steve Rindsberg

Worked like a charm. I am happy once again (and so is my little friend).

Excellent!


I'll see if I can some if the images from my internalist. <g>

Exorcist, I'd have thought. Or Ms. Weaver.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top