Hi,
As far as I know macros (VBA code) are only supported in the desktop versions of Excel for Windows and MacOS. They don't work on iPhone, iPad and Android phones, nor in the online (browser) version of Excel.
In my opinion, you can try to check if the Microsoft Forms will help you to create survey for you:
You can refer to this article to check if this product will help you:
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.