Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink from Userform
I've created a userform with multiple fields. When one particular field is
filled, I would like to enter that text into the worksheet as a hyperlink. How do I translate the text from that box to a hyperlink? Thanks! Mark |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink from Userform
I'm not exactly sure what you want, but you can try something like
Private Sub CommandButton1_Click() Dim URL As String URL = Me.TextBox1.Text If StrComp(Left(URL, 7), "http://", vbBinaryCompare) < 0 Then URL = "http://" & URL End If ThisWorkbook.FollowHyperlink Address:=URL End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "MAWII" wrote in message ... I've created a userform with multiple fields. When one particular field is filled, I would like to enter that text into the worksheet as a hyperlink. How do I translate the text from that box to a hyperlink? Thanks! Mark |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Hyperlink from Userform
Thanks, Chip. I'll try to clarify/simplify the request. In my userform, if
someone enters information in the combobox labeled "Antenna Pattern", I want that entry to appear in cell P2 as a hyperlink. I'm not sure how to take your code and make the text appear as a hyperlink in Range("P2"). Thanks! Mark "Chip Pearson" wrote: I'm not exactly sure what you want, but you can try something like Private Sub CommandButton1_Click() Dim URL As String URL = Me.TextBox1.Text If StrComp(Left(URL, 7), "http://", vbBinaryCompare) < 0 Then URL = "http://" & URL End If ThisWorkbook.FollowHyperlink Address:=URL End Sub -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting www.cpearson.com (email on the web site) "MAWII" wrote in message ... I've created a userform with multiple fields. When one particular field is filled, I would like to enter that text into the worksheet as a hyperlink. How do I translate the text from that box to a hyperlink? Thanks! Mark |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can't make hyperlink function work for hyperlink to website | Excel Worksheet Functions | |||
one userform to another | Excel Discussion (Misc queries) | |||
How do I create a hyperlink to a cell with the hyperlink function | Excel Worksheet Functions | |||
Moving rows with Hyperlink doesn't move hyperlink address | Excel Discussion (Misc queries) | |||
Intra-workbook hyperlink: macro/function to return to hyperlink ce | Excel Discussion (Misc queries) |