Get the URL from a textbox and display it as a msgbox

I need to retrieve the URL from the textbox.

The textbox have value = "Some text here ....<a href="http://google.com">Google</a> ... some other text here"

How can i get only http://google.com in a msgbox?

Thank you
Andreas LazarouMrAsked:
Who is Participating?
 
Martin LissOlder than dirtCommented:
MsgBox Split(text1,text, """")(1)
0
 
Martin LissOlder than dirtCommented:
Another way.
Dim intStart As Integer
Dim intEnd As Integer

intStart = InStr(1, text1.text, "<a href=")
intEnd = InStr(intStart, text1.text, ">")

MsgBox Mid(text1.text, intStart + 8, intEnd - intStart - 8)

Open in new window

0
 
vb_elmarCommented:
@ Andreas Lazarou
-You want to retrieve the URL from a Visual Basic
textbox?
0
 
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.