Group Policy or Trust Center settings have disabled macros. Solution: Go to File > Options > Trust Center > Trust Center Settings > Macro Settings . Select "Enable all macros" (only for a secured environment) and check "Trust access to the VBA project object model."
