sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,422
- Office Version
- 2016
- Platform
- Windows
I'm using this to loop through cells containing hyperlinks to websites and if criteria is met open that page;
This works, but it opens each hyperlink in the same window, so the result is that I only get left the last page it has opened.
Is there a way I can get it to open each link up in a new window/tab?
Code:
Application.DisplayAlerts = FalseFor Each Cell In Sheet11.Range("J2:J19")
If Cell.Value = "YES" Then
If Cell.Offset(0, 3) > 13 Then
ThisWorkbook.FollowHyperlink Cell.Offset(0, -7)
Cell.Offset(0, 2).Value = Format(Now, "dd/mm/yyyy")
End If
End If
Next
Application.DisplayAlerts = True
This works, but it opens each hyperlink in the same window, so the result is that I only get left the last page it has opened.
Is there a way I can get it to open each link up in a new window/tab?