Hi,
Did you get any error messages when opening the problem Workbook?
It is recommended that you check whether macros are disabled in Excel 365, please go to File- Options- Trust Center- Trust Center settings...- Marco Settings and check the option "Enable VBA macros", then restart the Workbook:
After enabled, check whether the macro can be used normally.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.