Enable Macro and ActiveX settings

gstylianou

Registered User.
Local time
Today, 17:14
Joined
Dec 16, 2013
Messages
359
Hi all
Is there a way to enable the Macro settings and ActiveX in Ms Access using vba?

Thanks in advance
 
Search the forum for Trust Center , lots of recent discussions.
 
Search the forum for Trust Center , lots of recent discussions.
Hi, about to enable the macros i found on web the following code, but i don't know why it doesn't work. The VBAWarnings : 1 its for Enable, 2,3,4 for disable macros....

any idea?

Dim WshShell As Object
Set WshShell = CreateObject("WScript.Shell")

WshShell.RegWrite "HKEY_USERS\S-1-5-21-113387354-4276480215-1281312295-1001\SOFTWARE\Microsoft\Office\16.0\Access\Security\VBAWarnings", "1", "REG_DWORD"

This is my access version (2019) path
Computer\HKEY_USERS\S-1-5-21-113387354-4276480215-1281312295-1001\SOFTWARE\Microsoft\Office\16.0\Access\Security\VBAWarnings
 
to Enable macro is add your db location to Trusted location.
 
to Enable macro is add your db location to Trusted location.
Hi, tried many things without any result. Yes, my DB is on trusted location......
 
It might be reverting due to a group policy or other IT rules on your machine?
 

Users who are viewing this thread

Back
Top Bottom