Hi NorafifyJalil,
Thank you for posting your query in our community.
You mentioned that you want to migrate Excel macro-enabled workbook (.xlsm) to SharePoint Online, since Office for the web doesn't support macros, so you can't create, run, or edit VBA (Visual Basic for Applications) macros in Excel for the web. However, you can open and edit a workbook that contains macros but macros do not run in a browser window. Any existing macros will remain in the workbook, and you can open the workbook in the Excel desktop app to view and edit the macros.
Since you also mentioned "Macros file if using Office 2013 or Office 2016", may I confirm that whether you want to use SharePoint Online which is from Microsoft Office 365 product and Excel 2013 or 2016 client? If yes, I want to explain that they are two different products. So when you click "Open in Desktop App" to open the macro-enabled workbooks from client, you need to sign in account which login to SharePoint Online to open the file.
If you still have any concern about it or my understanding is wrong, please feel free to post back.
Best regards,
Jazlyn