Forum Discussion
Rocky001
New Contributor
Code for closing borwsers through TaskManager: Public Function CloseAllBrowser() On Error Resume Next Log.Message ("CloseAllBrowser Function Started") IExplore = Sys.FindAllChildren("ProcessName","iexplore",2) ' IExplore = Sys.FindAllChildren("ProcessName","iexplore") If UBound(IExplore)>=0 Then For i = UBound(IExplore) to LBound(IExplore) Step -1 IExplore(i).Terminate Next End If '******** ErrorHandling ********* If Err.Number <> 0 Then Call ErrMyErrorHandler End If '*************** Log.Message ("CloseAllBrowser Function Completed") End Function
Veroniquelu
9 years agoContributor
Thank you
Related Content
- 12 years agoanandkumar