Dear Mohit Jaiswal,
Good day! Thank you for posting to Microsoft Community. We are happy to help you.
Can we enable VBA Macro on Web Excel?
According to my investigation as well as the instructions of the official documentation. We really can't run VBA in Excel Web:Work with VBA macros in Excel for the web - Microsoft Support
If not, by any means I can restrict web editing for users, so that, they only can do it on desktop mode?
Based on my testing and investigation, using the Protect Workbook feature meets your needs that prevent users from editing on the web.
The following message appears in Excel on the web, and the password cannot be removed in the web version
Ref :Office Online - Restrict Editing - Microsoft Community
Sincerely,
Tin | Microsoft Community Moderator