Regarding ticket number 1057086927, macro can't run

Copper Contributor

Hi,

 

I have a excel file with macro code sent from someone, the code ran fine on their end but when I opened the file on my computer, it was not running. I raised support ticket and have Microsoft support team looked into it and here is their replies: "It looks like there is changes needed to be made on the file." and I was suggested to reach out to excel expert team who can review and assist me with the root cause of issue. 

 

Thanks,

 

2 Replies

@kristi_duong 

It seems like you are encountering an issue with a specific Excel macro that was working for someone else but is not working on your computer. This can happen due to various reasons, including differences in Excel versions, settings, or dependencies specific to the original user's environment.

To address this issue and make the macro work on your computer, you can follow these steps:

  1. Check Excel Version: Ensure that you and the person who sent you the macro are using the same version of Excel. Sometimes, macros can behave differently between different versions of Excel.
  2. Macro Security Settings: Excel has security settings that can block or enable macros. Go to "File" > "Options" > "Trust Center" > "Trust Center Settings" > "Macro Settings." Make sure that "Enable all macros" or "Enable all macros (not recommended; potentially dangerous code can run)" is selected. Be cautious when adjusting these settings, especially if you are working with macros from untrusted sources.
  3. VBA References: The macro might rely on external references or libraries. In Excel, go to the "Developer" tab (if not visible, enable it in Excel options) and click "Visual Basic." In the Visual Basic for Applications (VBA) editor, go to "Tools" > "References" and check if any references are marked as "Missing." If so, they need to be updated or removed.
  4. Macro Code Compatibility: If the macro uses features or functions that are not available in your version of Excel, you may need to modify the code to make it compatible with your Excel version.
  5. Dependencies: The macro might rely on files, add-ins, or data sources that are not available on your computer. Ensure that all necessary files, add-ins, and data sources are accessible and correctly configured.
  6. Debugging: If you have some familiarity with VBA, you can try debugging the macro by running it step by step and identifying where it fails. This might help you pinpoint the issue.
  7. Excel Expert Assistance: If you are not comfortable with VBA or the above steps do not resolve the issue, consider reaching out to an Excel expert or a developer who can review the macro code and provide guidance on making it work in your environment.
  8. Alternative Solutions: If resolving the issue with the existing macro proves difficult, you might explore alternative solutions to achieve the same task or functionality in Excel.

Remember to exercise caution when working with macros, especially those received from unknown sources, to avoid security risks. The text and steps were edited with the help of AI.

 

My answers are voluntary and without guarantee!

 

Hope this will help you.

Was the answer useful? Mark them as helpful and like it!

This will help all forum participants.

@kristi_duong 

Reference on ticket number says us nothing, people here are not in support team. If you may to describe problem from the scratch and illustrate it by sample file it could help.