Originally, Excel was not designed to be a real database. Its early database functions were limited in quantity and in quality. And because every record in an Excel database is visible on the screen ...
You can enable macros in Excel using the Trust Center or enable a specific macro from the security warning at the top of a spreadsheet.