Stop Breaking Links

  • Thread starter Thread starter Prof
  • Start date Start date
P

Prof

Hello,

I want to create a macro which will prompt when someone is breaking
the links in a powerpoint slide/slides. Can someone tell me how to
detec the event that occurs when breaking the links

Thanks
 
Hello,

I want to create a macro which will prompt when someone is breaking
the links in a powerpoint slide/slides. Can someone tell me how to
detec the event that occurs when breaking the links

First: talk MS into adding an event when the user breaks links. The rest is
fairly easy. <g>

Seriously, there's no such event. The closest thing I know of is the selection
change event. You could use that to test whether the user's selected an object
with links.

Off top of head, you might try something like:

IF it has links, note its name or better yet tag it then make an invisible copy
of it

When the selection changes again, look at the original shape; if it's no longer
there (ie, user ungrouped it) or if it no longer has links, bark.

If the user wants to back out, restore to the invisible copy you made earlier.

That leaves the problem of what to do with the shapes from ungrouping, if
that's what they did. With luck, the selection change event will trigger on
ungroup so they'll be selected. Something for you to try ...
 
Back
Top