I am making a database to play movies and want to get the trailer from YouTube.com if available. I am launching the YouTube site now but thought it would be cool if it was embedded in my form.
I see on you tubes web site there is html but not sure how to make it into VBA.
here my code to launch YouTube
TIA
DougP
I see on you tubes web site there is html but not sure how to make it into VBA.
Code:
<object width="425" height="344"><param name="movie" value="[URL unfurl="true"]http://www.youtube.com/v/IvNkGm8mxiM&hl=en&fs=1"></param><param[/URL] name="allowFullScreen" value="true"></param><embed src="[URL unfurl="true"]http://www.youtube.com/v/IvNkGm8mxiM&hl=en&fs=1"[/URL] type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
here my code to launch YouTube
Code:
Dim GoInternet, SearchString As String
GoInternet = "[URL unfurl="true"]http://www.youtube.com/results?search_query="[/URL]
'SearchString =
GoInternet = GoInternet & Replace(Me.Text12, " ", "+")
GoInternet = GoInternet & "&search_type=&aq=f"
ProcessId = ShellExecute(Me.hwnd, "open", GoInternet, "", "", 0)
TIA
DougP