+ Reply to Thread
Results 1 to 3 of 3

Loop through a range and open in IE if cell has value

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Loop through a range and open in IE if cell has value

    Hi

    i have a range A2:A1000

    each cell could contain a hyperlink,

    which is determined by this formula,

    =IF('Detail'!E10="",TEXT("",""),Formulas!$B$1)

    if there is a hyperlink showing in a cell, i would like it to open up in internet explorer, with a 5 second delay before looking into the next cell

    many thanks in advance

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Loop through a range and open in IE if cell has value

    You'll need to read up on for next loops and application.ontime or application.wait for the 5 seconds, and look at embedding internet explorer in worksheet or in a userform.
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    05-16-2014
    MS-Off Ver
    Excel 2003
    Posts
    44

    Re: Loop through a range and open in IE if cell has value

    Hi try this pls..

    Sub openlink()
    For i = 1 To 2000
    Range("A" & i).Select
    If ActiveCell.Value = "" Then
    Else
    Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
    Application.Wait (Now + TimeValue("00:00:05"))
    End If
    Next i
    End Sub

+ 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. loop through a range and open internet explorer where link is valid
    By papasmurfuo9 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2014, 05:58 AM
  2. [SOLVED] Open & loop through worksheets based on filename cell value
    By ryanpetersen in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-05-2014, 03:16 PM
  3. For each cell in range loop does not recognize expanding range
    By jhren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2013, 07:49 AM
  4. Replies: 3
    Last Post: 06-22-2012, 06:40 PM
  5. how to loop though a cell range in VBA
    By jeskit in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-20-2011, 11:09 AM

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