
Hi,
This is an English language forum, I suggest you transform the language to English. The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
As far as I know, the VBA cannot work in Office for browser but work in Office for desktop.
If the user open the file from local OneDrive folder, the code will work:
It is recommended that you also pay attention to some security settings:
https://learn.microsoft.com/en-us/microsoft-365-apps/security/internet-macros-blocked
Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
If the response is helpful, please click "Accept Answer" and upvote it.
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.