Write a Macro in VBA - excel AFTER the user has closed the Excel

前端 未结 3 1938
闹比i
闹比i 2021-02-10 02:20

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

3条回答
  •  春和景丽
    2021-02-10 02:43

    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

    ThisWorkbook.Close (False)

提交回复
热议问题