An Office service that supports add-ins to interact with objects in Office client applications.
Thank you for sharing your concern.
As far as I know, colleagues with view-only access cannot run the script. Users need edit (or write) permission on the workbook to run it, and it also won’t be available for use in their own workbook unless the script itself is shared separately.
You can refer via: https://support.microsoft.com/en-us/office/sharing-office-scripts-in-excel-226eddbc-3a44-4540-acfe-fccda3d1122b
I hope this helps.
Please feel free to correct me if I misunderstood your request. If you have any additional concerns, feel free to comment below. I would be more than happy to assist.
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.