Hello,
I would like to find simple(hopefully) code to allow my code to timeout (or resume next) if the hyperlink I am trying to follow doesn't work. If I just paste the link into internet explorer, it will return a generic page saying the URL cannot be found. I can deal with that easily, but if I add the hyperlink to my excel worksheet, and then follow it, it will hang indefinitely if it cannot find the URL.
Also, this method does take a long time (for links that do work). About 8 seconds to load the page. Any suggestions to speed up are also greatly appreciated.
Thank you in advance!
Pat
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
I would like to find simple(hopefully) code to allow my code to timeout (or resume next) if the hyperlink I am trying to follow doesn't work. If I just paste the link into internet explorer, it will return a generic page saying the URL cannot be found. I can deal with that easily, but if I add the hyperlink to my excel worksheet, and then follow it, it will hang indefinitely if it cannot find the URL.
Also, this method does take a long time (for links that do work). About 8 seconds to load the page. Any suggestions to speed up are also greatly appreciated.
Thank you in advance!
Pat
ActiveSheet.Hyperlinks.Add Anchor:=Selection, Address:= _
"
Selection.Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True