A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi Jay Winestein,
Since the workbook runs as expected on another machine, this does suggest the issue is likely related to settings or environment on the affected PC, rather than the macro logic itself.
On the machine where it doesn’t work, a few gentle checks that may help narrow things down:
- Just confirm the file is still saved as
.xlsmor.xlsb, and that macros are enabled when you open it. - Try saving a fresh copy to a local folder (like Desktop or Documents) and reopening it. If the file came from email, OneDrive, or a network location, Windows/Excel can sometimes treat it as untrusted.
- It may also help to briefly compare Trust Center macro and ActiveX settings with the machine where it works.
- Opening Excel in Safe Mode (
excel /safe) can be a quick way to see whether an add‑in or startup item is getting in the way. - If this is a work‑managed device, keep in mind that security policies (including legacy/XLM macro restrictions) can differ between machines and override local settings.
If you’re seeing an error, noting whether it’s a compile error or run‑time behavior, and whether the file uses ActiveX or API/Declare code, can help point things in the right direction.
Please let me know if this proves useful to you, or if you would like further assistance.
I'm looking forward to your reply.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment”.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.