Dim ps As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName("excel")For Each p As System.Diagnostics.Process In ps
If p.MainWindowTitle = Nothing Then p.killNext