Results 1 to 5 of 5

how to open hyperlinks for only visible rows

Threaded View

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    35

    Exclamation how to open hyperlinks for only visible rows

    Hello all, new here and first thing i like to say is that this is a great forum. Currently i am using below code, however, it opens all the hyperlinks in column 'A'. I want something that will open only visible row. Some rows are hidden and i don't want the links to open. Thank you for your help.

    Sub Open_Hyperlinks()
    Dim i, LastRow
    LastRow = Range("E" & Rows.Count).End(xlUp).Row
    For i = 1 To LastRow
    If Cells(i, "E").Hyperlinks.Count > 0 Then
    Cells(i, "E").Hyperlinks(1).Follow
    End If
    Next
    End Sub
    Last edited by biznez1; 05-16-2013 at 04:18 PM. Reason: SOLVED

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