Option Explicit
Private Sub Command1_Click()
Dim WebOBJ As Object, I As Long, vTag As Object, STR1 As String
Set WebOBJ = Web1.Document.All("FrontPage_Form1").Document
If WebOBJ Is Nothing Then Exit Sub
On Error Resume Next
For I = 0 To WebOBJ.All.Length - 1
Set vTag = WebOBJ.All(I)
STR1 = LCase(vTag.Type)
If STR1 = "text" Or STR1 = "password" Then
If vTag.Name = "name" Then vTag.Value = "用户名"
'此处输入你的用户名
If vTag.Name = "pswd" Then vTag.Value = "password"
'此处输入你的密码
End If
Next
Web1.Document.All("FrontPage_Form1").Document.All("Submit").Click
End Sub
Private Sub Form_Load()
Web1.Navigate "http://jwgl.ynau.
End Sub