0
感谢 Tim Williams 在上面的评论中,我能够获得一个 VBA 代码来添加 / 删除将固定和取消固定项目的注册表项。
If RegKeyExists("HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\BEApplication\") = False Then
' Code for adding registry key
Dim myWS As Object, strPath
strPath = <Folder Path>
Set myWS = CreateObject("WScript.Shell")
myWS.RegWrite "HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\BEApplication\Path",strPath,"REG_SZ"
Else
' Key exists - do nothing
End If
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(14条)