Do you know how to create a Form?
Do you know VBA?
What is your experience level?
Steps
Create a Blank Form.
Add 2 Textboxes onto the Form. Grab them from the Toolbox and drag them onto the to Form.
Click on a Textbox, bring up the Properties sheet.
(Double click where the rulers join on the Form or Click on Property Sheet in the Ribbon)
Rename the Textbox txt1, do the same for the other textbox, txt2.
Now add a button to the form.
Click on the Event Tab.
Next to the On Click event click on the "..."
Choose Code Builder.
Code:
Private Sub Command1_Click()
Dim strURL as String
strURL = "http://m.youtube.com/#/results?q="
txt1 = trim(txt1) 'Remove trailing spaces
txt1 = replace(txt1, " ", "%20") 'Replace the spaces with URL encoded string i.e. %20
txt2 = trim(txt2) 'Remove trailing spaces
txt2 = replace(txt2, " ", "%20")
'Now join it
strURL = strURL & txt1 & txt2
Application.FollowHyperlink strURL 'This will open up your Default Web Browser and go to that address
End Sub
--
Alex Hedley
TechHelp Team Leader
599CD.com