Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all hyperlinks on a slide #60

Open
hakans-dev opened this issue Jan 7, 2025 · 0 comments
Open

Remove all hyperlinks on a slide #60

hakans-dev opened this issue Jan 7, 2025 · 0 comments

Comments

@hakans-dev
Copy link

Imagine a big chunk of text or table that you copied from Wikipedia; you can't remove multiple hyperlinks on a selection of multiple table cells (option never shows up), or in a text box (unless you start your selection exactly from the first hyperlink --- not everybody knows about it!). A button to delete all hyperlinks on the whole slide or selected text or table (cells) would help immensely. (or maybe two buttons?!)
The code below from this page might help. I haven't tested the code, but I think it shouldn't be a big deal even if it doesn't work.

Thank you very much for your wonderful work and making it public.

Sub DeleteLinks()
    Dim oSl As Slide
    Dim x As Long

    For Each oSl In ActivePresentation.Slides
        For x = oSl.Hyperlinks.Count To 1 Step -1
            oSl.Hyperlinks(x).Delete
        Next
    Next
End Sub
@hakans-dev hakans-dev changed the title Remove all hyperlinks in a slide presentation Remove all hyperlinks on a slide Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant