L
lorraine
I'm having issues with adding hyperlinks to specific words within a
TextRange.
Through vbscript automation, I'm generating a powerpoint package of
various slides. One of my slides is Table of Contents with a bullet
listing of the title of every slide in single textbox shape. I want
each title to hyperlink to the slide itself.
It's possible in Powerpoint to simply highlight a line of text and add
a hyperlink to it, but when I try to mimic that in automation by using
the Find("<text to search>") method to return a TextRange and add a
hyperlink to that, I'm only allowed one hyperlink for the overall shape
object. aka each time I add a hyperlink to a new TextRange returned by
Find, it deletes the old one before it adds the new one.
I was hoping that .Find would do the trick and allow me to add multiple
hyperlinks without having to add a new shape for each slide I want to
link to.
Is there anyway of having multiple hyperlinks on a slide without adding
a new textbox shape for each? Or is it more of a question of changing
the maximum number of hyperlinks per shape?
Thanks
Lorraine
TextRange.
Through vbscript automation, I'm generating a powerpoint package of
various slides. One of my slides is Table of Contents with a bullet
listing of the title of every slide in single textbox shape. I want
each title to hyperlink to the slide itself.
It's possible in Powerpoint to simply highlight a line of text and add
a hyperlink to it, but when I try to mimic that in automation by using
the Find("<text to search>") method to return a TextRange and add a
hyperlink to that, I'm only allowed one hyperlink for the overall shape
object. aka each time I add a hyperlink to a new TextRange returned by
Find, it deletes the old one before it adds the new one.
I was hoping that .Find would do the trick and allow me to add multiple
hyperlinks without having to add a new shape for each slide I want to
link to.
Is there anyway of having multiple hyperlinks on a slide without adding
a new textbox shape for each? Or is it more of a question of changing
the maximum number of hyperlinks per shape?
Thanks
Lorraine