To troubleshoot this issue, try the following steps:
- Check if you have the latest version of Excel.
- Make sure macros are enabled (File → Options → Trust Center → Trust Center Settings → Macro security → Security Level → Enable all macros)
- Verify that the macro you are trying to run isn’t blocked by Excel.
- Download and install the Microsoft Macro Runtime.
- Run Excel as an administrator and try again.
- Onward is to uninstall and reinstall Office again.