
Hi,
It will be helpful to provide more specific details about the code you're running and any error messages or debug information you have.
Apart from this, here are a few possible causes and suggestions to troubleshoot the issue:
- It's possible that an update to Excel or your operating system has caused a change in behavior. Check if any recent updates have been installed and try reverting them to see if it resolves the issue.
- Ensure that the workbook is not being opened in compatibility mode. Compatibility mode can limit the functionality and features available in Excel. To check, go to the "File" menu, click on "Options," and then select "General." Ensure that the workbook is saved in a current file format and not in an older version.
- Check if any add-ins or macro security settings have changed. If the code relies on external add-ins or macros, make sure they are enabled and properly configured. Check the macro security settings in Excel to ensure they are not blocking the execution of the code.
- Review the Trust Center settings in Excel to ensure they are not preventing the code from running. Go to the "File" menu, click on "Options," then select "Trust Center" and click on "Trust Center Settings." Check the settings related to macro security, trusted locations, and external content.
- Verify that the worksheet or workbook is not protected or restricted in any way that could prevent the code from running.
- If the code works fine in the web view but not in the desktop view, it could be a user-specific issue. Try running the code on a different user account or computer to see if the issue persists.
Best Regards.