+ Reply to Thread
Results 1 to 5 of 5

Hyperlink delay

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Hyperlink delay

    Is there a way to access 1 hyperlink and then after 15 second delay open another link in same window?
    Last edited by Tortus; 09-22-2014 at 04:41 PM.

  2. #2
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Hyperlink delay

    Maybe...
    Sub Macro1()
    Application.OnTime Now + TimeValue("00:00:15"), "Macro2"
    End Sub
    Sub Macro2()
    MsgBox "hello"
    End Sub
    Sub DontForgetThese()
         If Your thread includes any code Then Please use code tags...
         If Your thread has been solved Then Please mark as solved...
         If Anybody has helped to you Then Please add reputation...
    End Sub

  3. #3
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Hyperlink delay

    I played with this... it is sort of like yours. Problem is it opens another tab in Explorer. Not sure how to make that stop and open in the same window.

    Sub Open_HyperLinks()
        Dim hl As Hyperlink
        Range("k1").Select
        For Each hl In Selection.Hyperlinks
            hl.Follow
        Next hl
    Application.Wait (Now + TimeValue("0:00:10"))
    Call Open_Hyper2
    End Sub
    Sub Open_Hyper2()
        Dim hl As Hyperlink
        Range("l1").Select
        For Each hl In Selection.Hyperlinks
            hl.Follow
        Next hl
    End Sub

  4. #4
    Forum Contributor
    Join Date
    04-23-2007
    Location
    Texas
    Posts
    417

    Re: Hyperlink delay

    Got it! NewWindow=False was missing after the last hl.follow. Thanks everyone that looked. Maybe it will help someone else.

  5. #5
    Forum Contributor HerryMarkowitz's Avatar
    Join Date
    09-10-2012
    Location
    Europe
    MS-Off Ver
    Office 2021 - Win10
    Posts
    1,007

    Re: Hyperlink delay

    I have no idea opening in the same ie window.
    I hope other forummates will help you about that point...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro delay
    By jackandjill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2010, 09:41 PM
  2. IF rechecked after delay
    By fredpox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-23-2010, 05:47 PM
  3. Delay Macro
    By Jazzy Max in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-11-2010, 09:27 PM
  4. Delay
    By shapper in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-27-2008, 08:41 PM
  5. [SOLVED] Print Delay
    By spartanmba in forum Excel General
    Replies: 2
    Last Post: 03-11-2005, 04:06 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