关闭指定ie的例子
曾经记得有人问过要关掉指定 浏览器的Private Sub Command1_Click()
CloseIE
End Sub
'只要应用shdocvw.dll
Private Sub CloseIE(Optional InIETitle As String = "")
Dim IEList As New ShellWindows
Dim IEFile As InternetExplorer
On Error Resume Next
'遍历当前地浏览器窗口
For Each IEFile In IEList
If InStr(IEFile.Document.Title, InIETitle) > 0 Then
IEFile.Quit
End If
If InIETitle = "" Then
IEFile.Quit
End If
Next
End Sub