Forum Discussion
Excel Macros Issues
If you are experiencing issues with a previously functioning Excel macro that has started throwing errors and causing Excel to hang, it is possible that changes in the latest version of Excel or updates to the underlying operating system could be causing compatibility issues.
Here are a few steps you can take to troubleshoot and resolve the issue:
- Update the macro code: If the macro was created a few years ago, it's possible that changes in Excel over time have caused compatibility issues. Review the macro code and make any necessary updates to ensure it is compatible with the latest version of Excel. Check for deprecated or obsolete functions or features that may need to be replaced or modified.
- Enable "Trust access to the VBA project object model": In some cases, Excel's security settings may restrict the execution of macros, resulting in errors or hangs. To resolve this, go to the Excel options, navigate to the "Trust Center" settings, click on "Trust Center Settings," and then select "Macro Settings." Enable the option "Trust access to the VBA project object model" if it is not already enabled.
- Check for macro security settings: Verify that the security settings for macros are appropriately configured. Make sure the macro file is stored in a trusted location or enable macros to run from any location if necessary.
- Debug and error handling: Review the macro code and implement proper error handling techniques. Add error handling routines to handle potential errors and exceptions that may be occurring during the execution of the macro. This can help identify the specific line or section of code that is causing the issue.
- Test on different versions of Excel: If possible, test the macro on different versions of Excel to see if the issue is specific to the latest version. This can help determine if the problem is related to Excel itself or specific to the macro code.
- Contact the macro creator or Excel support: If you are unable to resolve the issue on your own, consider reaching out to the person who originally created the macro for assistance. Alternatively, you can contact Microsoft support for further guidance and troubleshooting.
By following these steps, you should be able to identify and resolve the issues with the Excel macro. Remember to back up your Excel file before making any changes to ensure you do not lose any important data or functionality. The text and the steps were created with the help of AI.
In order to be able to provide more precise information, it would make sense to insert the file (without sensitive data) or the VBA code. Additional information about the Excel version, file extension, operating system, storage medium, etc. would be beneficial.
My answer is voluntary and without guarantee.
Hope this will help you.
- excelmacrosMar 02, 2026Occasional Reader
Hello, if I may continue this thread with my excel queries related to macros.
I would love to.
My position is a slightly ever so different though,
From portalhttps://einvoice1.gst.gov.in/Others/BulkGenerationTools, I am trying to use this specific XLSM >
https://einvoice1.gst.gov.in/Documents/JSON_preperation_FormB(version1.01).xlsm
It works on on one computer running office 2021 ltsc, I got a new computer which has office 2024 home one which this has never worked.
There are 2 buttons, one is validate, the other is prepare json, after populating the valid fields, when I try to validate, on 2024 home, the file just saves data & not execute macro.
I toggled all the settings I could find including these two points- Enable "Trust access to the VBA project object model": In some cases, Excel's security settings may restrict the execution of macros, resulting in errors or hangs. To resolve this, go to the Excel options, navigate to the "Trust Center" settings, click on "Trust Center Settings," and then select "Macro Settings." Enable the option "Trust access to the VBA project object model" if it is not already enabled.
- Check for macro security settings: Verify that the security settings for macros are appropriately configured. Make sure the macro file is stored in a trusted location or enable macros to run from any location if necessary.
I have repaired office 2024, removed office 2024 & clean installed office 2021 home, same issue.
Then I realised the error & cleaned away office, installed the office 2021 LTSC & the issue still persists.
In terms of testing the macro, by-passed the password to try & check if the macros are being triggered, I am not very macro savvy unfortunately.