Private g_oIE As New InternetExplorer
Private URL As StringPublic Event HaveError()Private Sub Class_Initialize()
Dim g_oIE As New InternetExplorer
End SubPublic Sub Start(StartURL As String)
If StartURL = "" Then
RaiseEvent HaveError
Else
URL = StartURL
g_oIE.Visible = True
g_oIE.Navigate URL
End If
End Sub
Private URL As StringPublic Event HaveError()Private Sub Class_Initialize()
Dim g_oIE As New InternetExplorer
End SubPublic Sub Start(StartURL As String)
If StartURL = "" Then
RaiseEvent HaveError
Else
URL = StartURL
g_oIE.Visible = True
g_oIE.Navigate URL
End If
End Sub
Dim g_oIE As New InternetExplorer'这个应该改为set g_oIE =New InternetExplorer吧
End Sub