Rebam98
Computer
- Mar 28, 2006
- 14
Hi-
I'm trying to automatically insert a hyperlink into a text box based on what the text of the text box is. I am using PowerPoint.
What slide the text box links to can be linked based on the title of the slide. For instance, the title of the slide might be "John_Slide" while the text in the text box is "John." I want to be able to use the "John" to find "John_Slide".
I am able to extract what text is in the text box and assign it a variable. So say x = "John".
Now I want to insert a hyperlink based on the variable. The problem is the generic template of the hyperlink.subaddress looks like this,
ActiveWindow.Selection.SlideRange.Shapes("Text Box 4").Select
With ActiveWindow.Selection.ShapeRange.ActionSettings(ppMouseClick).Hyperlink
.Address = ""
.SubAddress = ",,Slide_Title"
.ScreenTip = ""
.TextToDisplay = ""
Where "Slide_Title" exists I want to put the equivalant of X & "_Slide", where X is the variable, in this case it would stand for "John" thus creating the slide title, "John_Slide."
With the quotes around the whole subaddress string, I don't know how to do this.
As usual, any insight would be greatly appreciated.
I'm trying to automatically insert a hyperlink into a text box based on what the text of the text box is. I am using PowerPoint.
What slide the text box links to can be linked based on the title of the slide. For instance, the title of the slide might be "John_Slide" while the text in the text box is "John." I want to be able to use the "John" to find "John_Slide".
I am able to extract what text is in the text box and assign it a variable. So say x = "John".
Now I want to insert a hyperlink based on the variable. The problem is the generic template of the hyperlink.subaddress looks like this,
ActiveWindow.Selection.SlideRange.Shapes("Text Box 4").Select
With ActiveWindow.Selection.ShapeRange.ActionSettings(ppMouseClick).Hyperlink
.Address = ""
.SubAddress = ",,Slide_Title"
.ScreenTip = ""
.TextToDisplay = ""
Where "Slide_Title" exists I want to put the equivalant of X & "_Slide", where X is the variable, in this case it would stand for "John" thus creating the slide title, "John_Slide."
With the quotes around the whole subaddress string, I don't know how to do this.
As usual, any insight would be greatly appreciated.