I don't think this is possible, unfortunately.
Why don't you want *.docm files to be opened? If it's for security reasons (as *.docm can contain macros), note that you can disable all macros in the Trust Center Settings dialog box.
__________________
Stefan Blom
Microsoft Word MVP
Microsoft 365 apps for business
Windows 11 Professional
|