Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sub ConnectWeb()
- Dim ie As InternetExplorer
- Dim C
- Dim ULogin As Boolean, ieForm
- Dim MyPass As String, MyLogin As String
- Dim Linha As Integer
- Dim PN As String
- MyLogin = Application.InputBox("Por Favor entre com o Login", "Empresa", Default:="User", Type:=2)
- MyPass = Application.InputBox("Por favor entre com a senha", "Empresa", Default:="Password", Type:=2)
- Set ie = New InternetExplorer
- ie.Visible = True
- ie.Navigate "http://url"
- Do Until ie.ReadyState = READYSTATE_COMPLETE
- Loop
- ie.Document.all("cuser").innerText = MyLogin
- ie.Document.all("cpass").innerText = MyPass
- ie.Document.getElementById("cent").Value = "BR"
- ie.Document.forms(0).submit
- Do While ie.Busy
- DoEvents
- Loop
- PN = "D515005-5304"
- 'JavaScript to create file
- ie.Document.parentWindow.execScript ("printPL('" & PN & "','N%2FC','no')")
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement