Results 1 to 1 of 1

VBA for Hyperlink Click (Experts only)

Threaded View

  1. #1
    Registered User
    Join Date
    10-26-2015
    Location
    Bangladesh
    MS-Off Ver
    2007
    Posts
    25

    VBA for Hyperlink Click (Experts only)

    I use this VBA code for clicking hyperlink. I am facing a problem, it click so quick. As a result Serial of link not match with browser Tab. For example, in excel which URL is 5 no serial, This link I found in 2 no tab or 7 no Tab etc.... It is very important maintain serial for me.
    Now VBA click hyperlink 10 times continuously & very quickly. I want it click first one & wait until Link goes to Browser tab.

    Sub ClickHyperlink()
    '
    ' Click website link
    '
    
        Dim i As Long
    
        For i = ActiveCell.Row To ActiveCell.Row + 9
            With Cells(i, ActiveCell.Column)
                If .Value <> "" Then
                    If Not .Hyperlinks.Count Then .Parent.Hyperlinks.Add .Cells, "http:\\" & .Text
                    .Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
                End If
            End With
        Next
        ActiveCell.Offset(0, 1).Select
    
    End Sub
    Moderator's note: Please use CODE tags for code, not QUOTE tags.
    Last edited by 6StringJazzer; 06-22-2016 at 01:34 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to run/click a hyperlink in C6
    By Steve_123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2014, 11:21 AM
  2. [SOLVED] click hyperlink from td in tr
    By Jimbo77 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-28-2014, 08:45 PM
  3. Are there any experts in Excel out there? Trying to simulate a physical double click
    By eugeneaeria in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-03-2014, 07:10 PM
  4. Replies: 2
    Last Post: 01-30-2014, 07:52 PM
  5. click on Hyperlink with macro
    By PriyankaGurav in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2013, 04:06 AM
  6. click hyperlink from listview
    By cnimes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-07-2012, 02:18 PM
  7. Checking if last click was a Hyperlink
    By Reporter in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-19-2009, 05:51 AM

Tags for this Thread

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