supposing this option is already enabled on Excel Trust Center:
Enable all macros (not recommended)
I want to change that setting to:
Disable all except digitally signed macros
I can use the below registry setting and apply by VBA.CreateObject("WScript.Shell")
[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Security]
"VBAWarnings"=dword:00000003
But, I ask about a native VBA method other than Windows registry editing.
Thanks for your help.