Supercharge your PowerPoint productivity with
Supercharge your PPT Productivity with PPTools - Click here to learn more.

PPTools

Image Export converts PowerPoint slides to high-quality images.

PPT2HTML exports HTML even from PowerPoint 2010 and 2013, gives you full control of PowerPoint HTML output, helps meet Section 508 accessibility requirements

Merge Excel data into PowerPoint presentations to create certificates, awards presentations, personalized presentations and more

Resize your presentations quickly and without distortion

Language Selector switches the text in your presentation from one language to another

FixLinks prevents broken links when you distribute PowerPoint presentations

Shape Styles brings styles to PowerPoint. Apply complex formatting with a single click.

Prep4PDF preserves interactivity in PowerPoint presentations when you convert to PDF

Links from converted Open Office files behave oddly

Problem

When you use PowerPoint to open or show a presentation created in Open Office, you may find that the links behave oddly.

Shapes and Action Buttons that include text may actually have two different hyperlink or action settings, one on the shape itself, another on the text. Clicking on the shape may trigger the action but leave the text color unchanged; clicking on the text changes the text color to the Followed Hyperlink color but doesn't perform the hyperlink action.

It's all too confusing.

Solution

Run this small macro on a COPY of your presentation. It picks up the shape's hyperlink information, applies it to the text in the shape then deletes it from the shape itself. Afterward, only the text will be hyperlinked.

Again, please run this only on a COPY of your valuable presentation.

Sub FixUpOOLinks()

    Dim osh As Shape
    Dim oSl As Slide

    For Each oSl in ActivePresentation.Slides
    For Each osh In oSl.Shapes
        If Len(osh.ActionSettings(1).Hyperlink.SubAddress) > 0 Then
            With osh.TextFrame.TextRange
                .ActionSettings(1).Hyperlink.Address = _
                osh.ActionSettings(1).Hyperlink.Address
                .ActionSettings(1).Hyperlink.SubAddress = _
                osh.ActionSettings(1).Hyperlink.SubAddress
            End With
            osh.ActionSettings(1).Hyperlink.Delete
        End If
    Next    ' Shape
    Next    ' Slide
End Sub

See How do I use VBA code in PowerPoint? to learn how to use this example code.


Did this solve your problem? If so, please consider supporting the PPT FAQ with a small PayPal donation.
Page copy protected against web site content infringement by Copyscape Contents © 1995 - 2015 Stephen Rindsberg, Rindsberg Photography, Inc. and members of the MS PowerPoint MVP team. You may link to this page but any form of unauthorized reproduction of this page's contents is expressly forbidden.
Español    Deutsch    Français    Português    Italiano    Nederlands    Greek    Japanese    Korean    Chinese

Supercharge your PPT Productivity with PPTools

content authoring & site maintenance by
Friday, the automatic faq maker (logo)
Friday - The Automatic FAQ Maker

Links from converted Open Office files behave oddly
http://www.pptfaq.com/FAQ00975_Links_from_converted_Open_Office_files_behave_oddly.htm
Last update 07 June, 2011
Created: