How can a macro determine which hypertext link invoked it?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have several hypertext links in a shape's text that all invoke the same
macro. The macro can know which shape invoked it from the macro's one
argumnet. Can the macro determine which hypertext link invoked it?
THANKS!!
 
Dim RightHere as String

Sub RomeoRomeo(oSh As Shape)
RightHere = oSh.Name
ActivePresentation.FollowHyperlink oSh.Tags("PseudoLink")
End Sub

If you set the shape to fire the action setting macro RomeoRomeo it will
send you to the address stored in the shape tag "PseudoLink" with the string
RightHere telling you the name of the shape that was clicked to send it.
 
Only shape level information is passed to the macro. I cannot think of
anyway to arrive at the textlink within the shape which was responsible for
the macro being fired without resorting to creating invisible shapes over
the text areas.
 
Back
Top