Enable Macros in MS Access automatically for the user - vba

Office 365
MS Access
Enable All Macros automatically
I had a macro and vb script that ran the steps to enable all macros in MS Access for the user automatically.
A recent update put a stop to that.
Are there other options that would allow this feature as part of the installation process?
Tried adding local and network paths to trusted locations.

Instead of manipulating the global macro settings, you can configure Office applications to trust specific locations on your computer or local network. Any Access file in a trusted location opens with macros enabled and without security warnings, even if the Disable all macros without notification option is selected in the Trust Center settings. This lets you run macros in certain files when all other Access macros are disabled.
Click File -> Options.
On the left-hand pane, select Trust Center, and then click Trust Center Settings… .
In the Trust Center dialog box, select Trusted Locations on the left side. You will see a list of the default trusted locations. These locations are important for the correct work of Access add-ins, macros and templates, and should not be changed. Technically, you can save your file/db to one of the Access default locations, but it's better to create your own one.
To set up your trusted location, click Add new location… .
In the Microsoft Office Trusted Locations dialog box, do the following:
Click the Browse button to navigate to the folder that you want to make a trusted location.
If you wish any subfolder of the selected folder to be trusted too, check the Subfolders of this location are also trusted box.
Type a short notice in the Description field (this can help you manage multiple locations) or leave it empty.
Click OK.
Click OK twice to close the remaining dialog boxes.

Related

TFS2015 Document library- open file instead of download

when i am trying to view files from my TFS document library it's download the file instead of opening it automatic with excel OR word that are already installed on my pc, does someone know how to fix it?
i am using office365 and TFS2015 as you can see at the screenshot that attached this is how it's look like in PC that working fine.
This kind of issue may related to your IE security setting, try to add the related sharepoint site in trust site and try again:
Close your browser (if you don't and you have your SharePoint site up you'll get a bunch of script errors because of the change to access
levels).
Go to your Control Panel
Open Internet Properties
Select the Security tab.
Select Trusted Sites
Click Sites, and add the URL for your SharePoint site.
More details please refer this similar issue: "Some files can harm your computer" dialog when I open a file from the document library
If the warning dialog is disappear, but when you open file still download. Then that behavior maybe defined by your browser. Try some other browser such as IE/Chrome/FireFox. Double check the integration/link of your browser and Word,Excel.

Digitally signed my macro and it still won't run in excel

I have made a VBA script in an Excel file. I don't want to allow all scripts to run because of security reasons so I set my Excel to work with Disable all macros except digitally signed macros Then I made a signature and signed my script. still when I try to run it, I get the following message:
Because of your security settings, macros have been disabled.
To run macros, you need to re-open this workbook, and then choose to enable macros
I would really not like to allow unrestricted use of maros, is there really no other way of using my own macro?
EDIT: I forgot to mention that I'm using Microsoft Office Excel 2007 12.06.6771.5000
You need to be sure that the VBA of the workbook is digitally signed correctly. If you open the VB-Editor and choose from menu Extras › Digital Signature it must show a certificate name in both positions.
The certificate needs to be trusted. Therefore see in Excel Options › Trust Center › Button "Preferences for Trust Center" and see if your certificate is within the list of Trusted Publishers. If it is not you need Windows to trust this certificate.
See here how to trust SSL certificate to local system account.

Outlook macros are disabled since Windows freezed previously

We use VBA macros in our company on every computer where Outlook is installed. Macros are digitally signed with a certificate to ensure security. This certificate is generate through the selfcert.exe application. When we add the digital signature on the VBA project (which contains the macros) in Outlook we choose the certificate generated previously and we check that Outlook options in the 'Trust Center Settings' are defined on 'Disable all macros except digitally signed macros'. Next, the first time we launch Outlook and run a macro, we got a message to confirm with 3 buttons: 'Trust all documents from this publisher', 'Enable Macros', 'Disable Macros'. We always choose to trust all to avoid getting this message again next time. This is working pretty well since several years on every machine.
Some weeks ago, someone complains about random freeze of Windows 10. The IT support solved this issue but unfortunately a new problem appeared: Outlook macros are always disabled on this machine. I am pretty sure this new problem is due to the previous freeze of Windows. I also read someone somewhere which crashed the disk and then Outlook macros got disabled.
What I already tried:
Remove/Add the certificate again
Create a new certificate to sign my macros
Renaming the VBA module containing the macros
Deleting the VBA module and creating it again
None of these actions worked. Macros are still disabled.
The temporary solution for now is to change the Trust Center Settings options by enabling all macros. But I cannot accept this workaround which is potentially dangerous.
I already search hours on Google and tried suggestions without luck.
Looks like your machine is corrupted. Try to repair Outlook or Office.
Be aware, you need to install a self-signed certificate as a trusted root CA in Windows. See Installing a Self-Signed Certificate as a Trusted Root CA in Windows Vista for more information.
Also you may find the Odd behaviour with macros being disabled forum thread helpful. It states the following:
I could reproduce the issue in Outlook 2013 (C2R 15.0.4927.1002). The macro would be disabled if I set 'Notifications for digitally signed macros, all other macros disabled' and i have added the CA into Trusted Publisher and Trusted Root CA list. The issue doesn't exist in Outlook 2016, I would suggest you use Outlook 2016 if you don't want to enable all macros. Besides, I suggest you submit your feedback on Outlook User Voice: https://outlook.uservoice.com/

Outlook macros are not enabled unless I enable all macros, which, it tells me, is potentially dangerous

I created a macro to work in Outlook (2016). Eventually got it working, but once I restarted Outlook, it didn't work any more.
Unless I select the option to 'enable all macros (not recommended)' - it says that the macros in the project are disabled. It doesn't come up with any option to enable them when I start the application.
I have changed security, signed it with SelfCert, closed Outlook - killed the process and restarted it. I have had the code on ThisOutlookSession, and on a separate module.
Frustratingly... it will only run if I enable all macros, which, it tells me, is potentially dangerous.
What can I do?
Running Office 2016 on Windows 10
When you're cresting own signature or with self-created signature, then save it only by setup with signature and later by closing - exit Outlook don't confirm to save it (it's configuration already saved on signature level).
I had the same situation. I've created a macro which was working fine at beginning and after restart of the Outlook I got the same error message.
Please be aware that with this solution you might put your system on risk. I only opened documents which I knew that comes from trusted source or were written by me
The best solution would be to sign the macro.
Go to: File -> Options -> Trust Center -> Trust Center Settings -> Macro Settings -> select Enable all macros

How to disable "ActiveX Control May Be Unsafe" popup

In an HTML file on My Computer, I'm trying to use the Scripting.FileSystemObject in a script. How can I disable the popup saying "Any ActiveX control on this page may be unsafe for scripting"?
The "Internet Options" Security pane allows one to set "Initialize and script ActiveX controls not marked as safe for scripting" to Enabled for various zones, but files on the local computer don't appear to be in any of the listed zones.
So I guess the alternate question is "How can I edit the security options for local files?"
System:
Windows XP SP3
Internet Explorer 7
By pure hackery, I discovered that setting the following registry value does it:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
But I'm still wondering whether there's any supported way of doing this.
Tools |Internet Options | Advanced tab .. way down under Security .. "Allow active content to run in files on My Computer"
Start Menu, Run and type INETCPL.CPL
Click the Security tab
In the Internet Zone, click the Custom Level button
Set Initialize and script ActiveX controls not marked as safe to Allow
There's a registry way of getting "Local Computer" to appear as one of the security zones. But this article doesn't mention IE7, so IE7 might be different. XP also has new settings like "Allow active content to run in files on My Computer" under advanced options.
Alternatively, if you rename your local .html file to .hta (a HMTL application), that might be what you're looking for. Unless you need all the browser chrome.
as someone mentioned that this should be added to registry
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1201"=dword:00000000
but i found that "Initialize and script ActiveX controls not marked as safe" must be enabled too for internet zone
Depends on the version. Here's for IE32 on x64 Windows:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95801-9882-11CF-9FA9-00AA006C42C4}]
[HKEY_CLASSES_ROOT\Wow6432Node\CLSID{0D43FE01-F093-11CF-8940-00A0C9054228}\Implemented Categories{7DD95802-9882-11CF-9FA9-00AA006C42C4}]
I also had ActiveX security warning ("an activex control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction ?") on IE11 Win10 & with the below registry setting I could suppress that popup.
[HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet
Settings\Zones\0] "1201="dword:00000000".
[HKEY_USERS\S-1-5-18 is for SYSTEM account & we can also set this for HKCU for current user account.
Activex Controls often prompt an error message while trying to launch course through the local files. (For IE7)
Please set the following settings under internet option\Security\Internet\custom level\
Run Activex controls and plug ins - Enable
Script Activex control marked safe for scripting - Enable
under Scripting - Active Scripting - Enable
Also please check the following check box undertools\Internet options\Advanced\security
1. Allow active content to run in my files on my computer.
~Alpana