I created a custom toolbar for my Excel application which gets created (through VBA code) when the workbook opens and deleted in the BeforeClose event of the Workbook. This is working fine.
I ran into the following issue: If a user clicks close and the workbook has not been saved, he/she is then prompted to save, don't save, or cancel. If cancel is chosen, the workbook is not closed. However, the BeforeClose event fires before the prompt to save, so the toolbar gets deleted. Is there any event that I can harness to recreate the toolbar, should the user cancel the save?
I ran into the following issue: If a user clicks close and the workbook has not been saved, he/she is then prompted to save, don't save, or cancel. If cancel is chosen, the workbook is not closed. However, the BeforeClose event fires before the prompt to save, so the toolbar gets deleted. Is there any event that I can harness to recreate the toolbar, should the user cancel the save?