How can a macro determine which hypertext link invoked it?

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!!
 
B

Bill Dilworth

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.
 
S

Shyam Pillai

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.
 

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