I need the VB app to shut itself down once IE launches and it isn't currently. Here is the code, probably simple I'm just missing it.

VB Code:
  1. Private Sub Form_Load()
  2.  
  3. Dim objMSIE
  4. Dim boolFileExists As Boolean
  5. Dim strNotFound As String
  6. Dim strStatus As String
  7.  
  8. Set objMSIE = CreateObject("InternetExplorer.Application")
  9. If Err.Number = 0 Then 'No error
  10.             boolFileExists = True
  11.             outrc = 0
  12.         Else
  13.             boolFileExists = False
  14.             strNotFound = "I cannot find Internet Explorer." & vbCrLf & "Please download Internet Explorer from www.microsoft.com/windows/ie"
  15.             MsgBox strNotFound, vbCritical, "Application Error"
  16.             outrc = 1
  17.             Exit Sub
  18.         End If
  19.  
  20. objMSIE.Navigate ("To a website")
  21. objMSIE.Visible = True
  22.  
  23. Set PublicObjectMSIE = objMSIE
  24. strStatus = PublicObjectMSIE.StatusText
  25.    
  26.     Select Case strStatus
  27.         Case "Done"
  28.             End
  29.     End Select
  30.  
  31. End Sub