Hello @Zhu, Ligong,
Welcome to the Microsoft Q&A forum.
Thank you for providing the detailed information about the issue you are facing. Based on what you shared, it appears that you are encountering a problem when running VBA code to add add‑ins to an Office application. You also mentioned that this process was working properly several weeks ago, but has recently stopped functioning as expected.
To help determine whether this behavior is related to a recent Office update, I kindly ask you to try reverting your Office installation to an earlier build. This will help us rule out any compatibility conflicts between the latest Office version and your VBA script.
Since your device is using the Monthly Enterprise Channel, you may consider reverting to the January 2026 build or an earlier version. Please follow the steps in the official Microsoft article below:
How to revert to an earlier version of Office - Microsoft Support
You can review all available build versions here:
Update history for Microsoft 365 Apps (listed by date) - Office release notes | Microsoft Learn
Before reverting your Office version, please clear the Excel cache by following these steps:
- Open Excel.
- Go to File > Options > Save.
- Scroll to the bottom and select Delete cached files.
- Click OK, then restart Excel.
After completing the steps above, please try running your VBA code again.
If the issue persists, hope you will understand that I am unable to provide in‑depth assistance with custom scripting or VBA development within this forum. Therefore, to receive accurate and specialized guidance, I recommend posting your question in one of the following communities:
• StackOverflow – A highly active community for VBA and macro-related inquiries. (Note: Microsoft provides this link for your convenience. These sites are not operated or controlled by Microsoft, and we cannot make any representations regarding the quality, safety, or suitability of their content. Please ensure you fully understand the risks before applying any recommendations.)
• Microsoft Tech Community – Actively monitored by Microsoft Engineers and MVPs who can offer more targeted support.
These platforms are specifically designed for technical coding questions and will provide broader visibility along with more timely responses from experts.
Thank you again for your understanding and patience. Although my response may not resolve your issue immediately, I am here if you have any other questions.