Results 1 to 4 of 4

macro that make hyperlink?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    145

    macro that make hyperlink?

    Hey guys
    I am trying to turn a url string into a clickable hyperlink, using the following macro:


    Public Sub Convert_To_Hyperlinks()
        Dim Cell As Range
        For Each Cell In Intersect(Selection, ActiveSheet.UsedRange)
            If Cell <> "" Then
                ActiveSheet.Hyperlinks.Add Cell, Cell.Value
            End If
        Next
    End Sub

    the problem is that instead of making a link like this http://example.com I am getting a link like this file:///C\users\deski\desktop\example.com

    See file attached

    How can I fix that? thx a lot!
    Attached Images Attached Images
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1