Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找到了与使用宏关闭工作表有关的各种答案,但我需要(好的希望)做一些不同的事情。当用户关闭工作簿时,我想自动将三个工作表写入网络驱动器。我可以毫无问题地进行导出,但是当 Excel 关闭时,我正在绘制一个空白启动代码。有什么想法吗?
在ThisWorkbook模块中:
ThisWorkbook
Private Sub Workbook_BeforeClose(Cancel As Boolean) 'your code here... End Sub