Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

If text is a hyperlink then return true 1

Status
Not open for further replies.

Davefeet

Technical User
Jan 24, 2002
212
US
in excel, I need a function that test another cell to see if it is a hyper link and if it is then return true.

Thanks

Dave

SLC: Greatest snow on earth!!!
 
Dave,

pass a range, returns true/false
[tt]
Function IsHyperlink(rng As Range)
IsHyperlink = False
For Each h In rng.Hyperlinks
IsHyperlink = True
Next
End Function
[/tt]
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top