Results 1 to 7 of 7

How to work with hyperlink index

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-30-2012
    Location
    Israel
    MS-Off Ver
    2007, 2016
    Posts
    642

    How to work with hyperlink index

    Hi. In each cell in column A ("A1:A50") there is a hyperlink. The macro below will open these hyperlinks simultaneously. I want the macro to open only 5 hyperlinks at a time, how would you do it?

    Public Sub search()
    With Worksheets("1")
    Dim CompName As Range
    Set CompName = .Range("a1:a" & .UsedRange.Rows.Count)
    Dim CompNumber As Integer, CompRank As Integer
    CompRank = .UsedRange.Rows.Count
    For CompNumber = 1 To CompRank
    Worksheets("1").Range("CompName").Hyperlinks(CompNumber).Follow NewWindow:=True
    Next CompRank
    End With
    End Sub
    Last edited by GIS2013; 03-28-2014 at 12:58 PM.
    Please * if you like the answer

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hyperlink, Index, Match
    By Bob Lankin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-24-2013, 11:55 PM
  2. Index, match & hyperlink
    By kryzis04 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-07-2013, 09:26 AM
  3. Index Match Index Formula work slow
    By avk in forum Excel General
    Replies: 9
    Last Post: 03-07-2012, 02:19 PM
  4. Hyperlink doesn't work
    By foxguy in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-08-2010, 01:52 PM

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