Enable Macro and ActiveX settings (1 Viewer)

gstylianou

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

Thanks in advance
 

Isaac

Lifelong Learner
Local time
Today, 09:33
Joined
Mar 14, 2017
Messages
8,779
Search the forum for Trust Center , lots of recent discussions.
 

gstylianou

Registered User.
Local time
Today, 19:33
Joined
Dec 16, 2013
Messages
357
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
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 00:33
Joined
May 7, 2009
Messages
19,245
to Enable macro is add your db location to Trusted location.
 

gstylianou

Registered User.
Local time
Today, 19:33
Joined
Dec 16, 2013
Messages
357
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......
 

Isaac

Lifelong Learner
Local time
Today, 09:33
Joined
Mar 14, 2017
Messages
8,779
It might be reverting due to a group policy or other IT rules on your machine?
 

Users who are viewing this thread

Top Bottom