资讯

In that case, VBA skips this step and continues with the next workbook. The code must skip the Personal.xlsb workbook because if it closes, it also stops running, perhaps leaving workbooks open.
Use one or both of these simple Microsoft Excel macros to list all the sheets in an Excel workbook.
Open the macro that you want to run your code. For example, if the code must run when a user clicks "Button1," open the "Button1_Click" macro.