G
Gil
Hi,
I have a slide with hyperlinked rectangle.
I want to update the link with VBA.
I tried the following code.
It worked only when I choose the slide (using slide sorter).
I want to run it during presentation runtime (using command button).
What should I correct ?
Sub updateHyperlinks()
Dim s As Slide
Set s = ActivePresentation.Slides(2)
With s.Shapes("Rectangle 4")
With .ActionSettings(ppMouseClick).Hyperlink
.Address = ""
.SubAddress = "report slide"
.ScreenTip = ""
.TextToDisplay = ""
End With
End With
End Sub
I have a slide with hyperlinked rectangle.
I want to update the link with VBA.
I tried the following code.
It worked only when I choose the slide (using slide sorter).
I want to run it during presentation runtime (using command button).
What should I correct ?
Sub updateHyperlinks()
Dim s As Slide
Set s = ActivePresentation.Slides(2)
With s.Shapes("Rectangle 4")
With .ActionSettings(ppMouseClick).Hyperlink
.Address = ""
.SubAddress = "report slide"
.ScreenTip = ""
.TextToDisplay = ""
End With
End With
End Sub