i have created some hyperlinks in a workbook in column "c" using vba using this code.
Sub SetHyperlinkName()
Dim lw As Long
Range("d2").Select
lw = Range("j" & Rows.Count).End(xlUp).Row
Range("d2").Value = "=hyperlink(c2,e2)"
Range("d2:c" & lw).FillDown
End Sub
and then this
Sub PasteValues()
Range("c2").Activate
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.Copy
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.PasteSpecial xlPasteValues
End Sub
i now want to open these hyperlinks using this code
Sub HyperOpen()
Dim Cell As Range
Dim r As Integer 'Last used row in column F
On Error Resume Next
'Last used row in column F
r = Range("c65536").End(xlUp).Row
For Each Cell In Range("c2:c" & r) 'Range containing hyperlinks
Cell.Hyperlinks(1).Follow NewWindow:=True, AddHistory:=False
Next Cell
End Sub
the issue is the cells are not formatted and underlined blue as a hyperlink after creating the links. if i manually go to each cell in "c" excel auto formats them and the above code "hyperopen" executes correctly.
one other thing what code do i need to add to "hyperopen"
to run in the background when opening about 15 IE windows.
Thank you in advance
Duane Reynolds
Sub SetHyperlinkName()
Dim lw As Long
Range("d2").Select
lw = Range("j" & Rows.Count).End(xlUp).Row
Range("d2").Value = "=hyperlink(c2,e2)"
Range("d2:c" & lw).FillDown
End Sub
and then this
Sub PasteValues()
Range("c2").Activate
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.Copy
Range(ActiveCell, ActiveCell.End(xlDown)).Select
Selection.PasteSpecial xlPasteValues
End Sub
i now want to open these hyperlinks using this code
Sub HyperOpen()
Dim Cell As Range
Dim r As Integer 'Last used row in column F
On Error Resume Next
'Last used row in column F
r = Range("c65536").End(xlUp).Row
For Each Cell In Range("c2:c" & r) 'Range containing hyperlinks
Cell.Hyperlinks(1).Follow NewWindow:=True, AddHistory:=False
Next Cell
End Sub
the issue is the cells are not formatted and underlined blue as a hyperlink after creating the links. if i manually go to each cell in "c" excel auto formats them and the above code "hyperopen" executes correctly.
one other thing what code do i need to add to "hyperopen"
to run in the background when opening about 15 IE windows.
Thank you in advance
Duane Reynolds