hello everyone:
Thanks for read my post.
I'm from Chile, i need your help.
Does anyone know how open the website saved from the textbox?
Is there a code for that?
II hope for his kind answers![]()
hello everyone:
Thanks for read my post.
I'm from Chile, i need your help.
Does anyone know how open the website saved from the textbox?
Is there a code for that?
II hope for his kind answers![]()
Not sure what you mean by "saved from the text box". But you could adapt something like this:
![]()
Sub foo() Dim stURL As String On Error GoTo Terminate stURL = InputBox("Enter URL") If Not Left(stURL, 4) = "http" Then stURL = "http://" & stURL ThisWorkbook.FollowHyperlink (stURL) Terminate: If Err.Number Then MsgBox "Error " & Err.Number & " - " & Err.Description, _ vbCritical + vbOKOnly, "Error" Err.Clear End If End Sub
let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source
If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE
Walking the tightrope between genius and eejit...
Thanks Olly.
when i refer to "saved from the text box" is can obtain the link that is found in a specific cells in a woorksheets. Then my idea is ejecute the userform and the user can open the link directly from textbox.
Know what I mean?
i hope your answer, thanks in advance
Post a sample workbook, showing your input cell(s) and existing userform / code.
Hello Olly
Look, please attach the file relating to example need if you can help me. Basically i want to know if there some methods for open the link that found in the textbox.
Best RegardExample.xlsm
Try this:
![]()
Private Sub CommandButton1_Click() Dim stURL As String On Error GoTo Terminate stURL = TextBox4.Value If Not Left(stURL, 4) = "http" Then stURL = "http://" & stURL ThisWorkbook.FollowHyperlink (stURL) Terminate: If Err.Number Then MsgBox "Error " & Err.Number & " - " & Err.Description, _ vbCritical + vbOKOnly, "URL Error" Err.Clear End If End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks