
Announcements
Hello,
I am developing an MFC C++ application and want to embed an Excel file into my form using OLE Object. When I open the Excel (.xlsm) file directly in Office, macros work normally.
However, when I embed the Excel file into my MFC application via OLE, Office blocks the macros, even though I have already taken the following steps:
Actions I have tried:
Error message:
When opening the embedded Excel file from my MFC app, Office shows "Macros have been disabled."
My question:
Has anyone encountered this issue before?
Is there any way to allow macros to run when embedding an Excel file into an MFC app via OLE?
Are there any additional permissions, registry configurations, or policies that need to be set?
Thank you very much for your help!
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Valantis
556
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
chiaraalina
155
Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'.
Michael E. Gernaey
118
Super User 2025 Season 2