you will need to create a Class module and instatiate the ie control, then use the controls event
eg
Set Refrence to [Microsoft internet controls] = shdocvw.dll
create Class module named clsIE
Option Explicit
'// Class Name clsIE
Public WithEvents IE As InternetExplorer
Private Sub Class_Initialize()
Set IE = New InternetExplorer
End Sub
Private Sub Class_Terminate()
Set IE = Nothing
End Sub
Private Sub Ie_OnQuit()
MsgBox "Closed now"
End Sub
Then STD Module
Option Explicit
Dim objApp As clsIE
Sub Tester()
'// Ivan F Moala
Set objApp = New clsIE
With objApp
.IE.Visible = True
.IE.Navigate ("http://vbaexpress.com/forum/showthread.php?t=15381")
End With
End Sub