Hi All i am trying to create a script to upload a wallpaper after signing.
So far got through this after several attempts, your help is greatly appreciated.
Source:
current code
So far got through this after several attempts, your help is greatly appreciated.
Source:
HTML:
Upload
Upload
current code
Code:
Dim HTMLDoc As HTMLDocumentDim MyBrowser As InternetExplorer
Sub VCW()
Dim MyHTML_Element As IHTMLElement
Dim MyURL As String
On Error GoTo Err_Clear
MyURL = "http://xxxxx"
Set MyBrowser = New InternetExplorer
MyBrowser.Silent = True
MyBrowser.navigate MyURL
MyBrowser.Visible = True
Do
Loop Until MyBrowser.readyState = READYSTATE_COMPLETE
Set HTMLDoc = MyBrowser.document
HTMLDoc.all.UserName.Value = "xxxx"
HTMLDoc.all.Password.Value = "xxxxx"
Application.SendKeys "~"
// sign-in complete, need to proceed with upload after sign in.
Err_Clear:
If Err <> 0 Then
Err.Clear
Resume Next
End If
End Sub