Small test case demonstrating PowerPoint 2007 Hyperlink Problem

R

R_CAxcelis

I cannot successfully create a hyperlink from text inside a table in Office
2007. I could do this in Office 2003 without a problem.
See code below. It tries to create a hyperlink from a cell in a table on
slide 2 to jump to slide 4. For reference there is also working code that
turns the title on slide 2 into a hyperlink to slide 4.


Sub SeeSubAddressProblem()
' This works

ActivePresentation.Slides(2).Shapes(1).TextFrame.TextRange.ActionSettings(ppMouseClick).Hyperlink.Address = ""

ActivePresentation.Slides(2).Shapes(1).TextFrame.TextRange.ActionSettings(ppMouseClick).Hyperlink.SubAddress = "259,4,Slide 4"

' This doesn't!
ActivePresentation.Slides(2).Shapes(2).Table.Cell(1,
1).Shape.TextFrame.TextRange.ActionSettings(ppMouseClick).Hyperlink.Address =
""
ActivePresentation.Slides(2).Shapes(2).Table.Cell(1,
1).Shape.TextFrame.TextRange.ActionSettings(ppMouseClick).Hyperlink.SubAddress = "259,4,Slide 4"
End Sub

I have isolated the problem with hyperlinks in Office 2007 to be specific to
creating hyperlinks from text in table cells. The above .ppt demonstrates
the problem in an isolated way.
 

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