You are on page 1of 1

sub commandbuttion_click()

WindowsMediaPlayer1.URL=""
WindowsMediaPlayer1.Controls.Play
End sub
-----------
sub commandbuttion_click()
WindowsMediaPlayer1.openplayer=""
End sub

-----------------
Private Sub UserForm_Click()
Dim UserID, password As String, facebook As Object
UserID = Range("c3").Value
password = Range("c5").Value
Set facebook = CreateObject("Internetexplorer.application")
facebook.navigate "facebook.com"
While facebook.Busy
Wend
facebook.document.getelementbyid("email").Value = UserID
facebook.document.getelementbyid("pass").Value = password
facebook.document.getelementbyid("loginbutton").Click
facebook.Visible = True

End Sub