Hi,
Did this problem appear in all Excel Workbooks or specific Workbook?
How about other Office product with VBA editor?
I suggest you try to repair Office, try to repair online:
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
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.