To disable macros in Excel, you can use the Local Group Policy Editor. To do that, open the GPEDIT and navigate to User Configuration > Administrative Templates > Microsoft Excel 2016 > Excel Options > Security > Trust Center. Double-click on the Block macros from running in Office files from the Internet setting and choose the Enabled option. Then, click on the OK button to save the change. For your information, you can do the same in other apps and using Registry Editor as well.