checking if an url exists

D

dominicb

Good morning Aldo

I don't know of a more direct way, but this routine will trap a call to
an invalid url. If the address exists, it will be opened

On Error GoTo Last
ThisWorkbook.FollowHyperlink Address:="http://www.microsof.com",
NewWindow:=True
Exit Sub
Last:
MsgBox "Invalid address"

HTH

DominicB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top