I need to write a macro in Excel VBA, that terminates a process running in windows tasks AFTER the excel has been closed down. I tried it doing this on event workbook_BeforeClos
Maybe you could offer the user a do you wish to save option before you close the excel and then suppress any further dialogs for the user by
Application.DisplayAlerts=False or
Application.DisplayAlerts=False
ThisWorkbook.Close (False)