Overview
When opening an Office document and have M-Files add-in enabled, you can get the following warning about unsupported macros:
"The function you are attempting to run contains macros or content that requires macro language support"
Solution / Workaround
The issue can be related to customized Office package installation, that has not enabled all the Visual Basic for Applications (VBA) features. To troubleshoot the issue, try the following steps:
1) Check the macros setting in Office are set correctly:
2) Is VBA installed:
- Open Office document
- Press Alt+F8 on your keyboard
- If a new VBE window opens, VBA is installed and enabled
3) Is VBA enabled:
- Run document and press ALT+F11, if the VBE (Visual Basic Editor) doesn't open, it may be that VBA is disabled
- Verify the registry settings, that the "VBAOFF" registry key has been defined. Check Method 3 and 5, from the following Microsoft documentation:
4) Verify the Office setup. The VBA feature is part of the Office setup, but optional, so verify with your IT administrator if custom installation has been used.
