Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Common problems

Warning about unsupported macros when opening Office documents

Last updated on 20 February 2021

Admin
Microsoft Office Add-ins

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:

https://support.office.com/en-us/article/enable-or-disable-macros-in-office-files-12b036fd-d140-4e74-b45e-16fed1a7e5c6

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:

   https://docs.microsoft.com/en-us/office/troubleshoot/office-developer/turn-off-visual-basic-for-application

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.

Still need help?