The VBA code below has been working fine no issues and today it stopped working I have tried everything can cannot get it to work.
Basically I select a range of hyperlinks and it then goes to Chrome and opens a tab
Just to add If I clink on a single Hyperlink it opens the Youtube as expected but when using the above VBA code it display the box with the range and when ok clicked it does nothing.
Thank you in advance for any help
Basically I select a range of hyperlinks and it then goes to Chrome and opens a tab
VBA Code:
Sub OpenHyperLinks()
'Update 20141124
Dim xHyperlink As Hyperlink
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each xHyperlink In WorkRng.Hyperlinks
xHyperlink.Follow
Next
End Sub
Just to add If I clink on a single Hyperlink it opens the Youtube as expected but when using the above VBA code it display the box with the range and when ok clicked it does nothing.
Thank you in advance for any help
Cell Formulas | ||
---|---|---|
Range | Formula | |
B2:B21 | B2 | =HYPERLINK(CONCATENATE("https://www.youtube.com/results?search_query=",SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2," ","+"),"&","%26"),"[","%5B"),":","%3A"),"]","%5D"))) |